Table of Contents

Problem

When you log in, you are actually not logged in and login screen is shown again.

Solution

By default, IU handles sessions with MySQL database. You can try to switch session handling to file system. To do this, simply open manage/connection.php file, locate following line and comment it by adding two slashes in front:

$sess = new SessionManager($iu_table_prefix);

Make it look like this:

//$sess = new SessionManager($iu_table_prefix);

Save this file, re-upload and try again. If after this you still can't log in, you need to explicitly tell PHP where to store session data because it is not configured properly. In most cases it'll be /tmp directory on your server, but in some rare cases you'll need to create writable (CHMOD 777) folder on your website and to change /tmp to the FULL path to that writable folder. You can use phpinfo(); to find out what is full path (DOCUMENT_ROOT) of your web site.

If your server is installed as server module, and not as CGI module you could try to create blank text file, name it .htaccess and place it in your website root folder, and place following lines in it. If such file already exists, just append following code at the end of it:

php_value session.save_path files
php_value session.save_path "/tmp"

Otherwise, if PHP is installed as CGI module create blank text file, name it php.ini and place it in your website root folder, and place following lines in it. If such file already exists, just append following code at the end of it:

[Session]
session.save_handler = files
session.save_path = "/tmp"

Path

Please note that folder ”/tmp” (mentioned in the examples above) might not be available on your server. In that case it is advised to create a randomly named folder within your web space folder (e.g. /home/username/public_html/rAnd0mLy_n4mEd_d1r/ ) and to place that path into configuration file mentioned above in the “Solution” part of this document. To find out what is full path to your web site folder, please use phpinfo(); and search for “DOCUMENT_ROOT”.

 
troubles/cant_login.txt · Last modified: 2011/07/26 09:03 by avram
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki