Welcome Guest, Not a member yet? Register   Sign In
Which session library to use? Any suggestions?
#29

[eluser]RobertSall[/eluser]
[quote author="jedd" date="1263264801"][quote author="RobertSall" date="1263262514"]
've launched a site which got pretty many users at the moment, but some users complains on autologout and some can't login sometimes. I'm not sure which browsers they are using but at least one use IE. I don't want to update the files right now so the users wont see any errors or such. I removed the underscore in the config file for the session name, do you think this will solve my problem?
[/quote]

That's a pretty big question. 'Can't login sometimes' is a touch vague, and doesn't necessarily equate to cookie timeout or underscore problems.

It'd be nice to know what version of IE they're using (IE6 is bordering on criminally evil, f.e., and its behaviour simply can't be predicted) - and any other funky stuff going on at the app end.[/quote]

Yea well that's all I know, they get logged out randomly. I don't think they're using IE 6 since it's almost dead now? It's hard for me to show you the code cuz it's alot, the code adding sessions looks like this:
Code:
$this->session->set_userdata('user', $loginOK["user_id"] );
                $this->session->set_userdata('groupname', $loginOK["group_name"] );
                redirect('users');
The code that check the sessions looks like this
Code:
$user = $this->session->userdata('user');
        if ( ! empty ( $user ) )
        {
            define('USERID', $user);
            $this->load->model('User_model','User',true);
            $user = $this->User->findSingle(USERID);
            define('USERNAME', $user["username"] );
            define('USERSHOWS', $user["shows"] );
        }
        
        // vilken anv√§ndargrupp man tillh√∂r
        $group = $this->session->userdata('groupname');
        if ( ! empty ( $group ) )
            define('GROUP', $group);

I had an underscore in the "groupname" session before but removed that aswell. Is there anything else I should think of that might cause the "random logout" issue?


Messages In This Thread
Which session library to use? Any suggestions? - by El Forum - 09-29-2009, 09:51 AM
Which session library to use? Any suggestions? - by El Forum - 09-29-2009, 12:21 PM
Which session library to use? Any suggestions? - by El Forum - 09-29-2009, 01:20 PM
Which session library to use? Any suggestions? - by El Forum - 10-02-2009, 03:46 PM
Which session library to use? Any suggestions? - by El Forum - 10-02-2009, 07:39 PM
Which session library to use? Any suggestions? - by El Forum - 10-03-2009, 12:24 AM
Which session library to use? Any suggestions? - by El Forum - 10-03-2009, 05:00 AM
Which session library to use? Any suggestions? - by El Forum - 10-03-2009, 06:34 PM
Which session library to use? Any suggestions? - by El Forum - 11-18-2009, 01:44 PM
Which session library to use? Any suggestions? - by El Forum - 11-19-2009, 04:27 AM
Which session library to use? Any suggestions? - by El Forum - 11-19-2009, 08:33 AM
Which session library to use? Any suggestions? - by El Forum - 11-19-2009, 08:46 AM
Which session library to use? Any suggestions? - by El Forum - 11-19-2009, 08:56 AM
Which session library to use? Any suggestions? - by El Forum - 11-19-2009, 09:43 AM
Which session library to use? Any suggestions? - by El Forum - 11-19-2009, 08:45 PM
Which session library to use? Any suggestions? - by El Forum - 11-20-2009, 05:23 AM
Which session library to use? Any suggestions? - by El Forum - 11-20-2009, 07:25 AM
Which session library to use? Any suggestions? - by El Forum - 11-20-2009, 09:20 AM
Which session library to use? Any suggestions? - by El Forum - 11-20-2009, 01:59 PM
Which session library to use? Any suggestions? - by El Forum - 11-20-2009, 05:32 PM
Which session library to use? Any suggestions? - by El Forum - 11-20-2009, 07:13 PM
Which session library to use? Any suggestions? - by El Forum - 11-23-2009, 09:48 PM
Which session library to use? Any suggestions? - by El Forum - 12-03-2009, 01:47 PM
Which session library to use? Any suggestions? - by El Forum - 12-08-2009, 06:24 AM
Which session library to use? Any suggestions? - by El Forum - 12-08-2009, 07:12 AM
Which session library to use? Any suggestions? - by El Forum - 12-08-2009, 10:38 AM
Which session library to use? Any suggestions? - by El Forum - 01-11-2010, 02:15 PM
Which session library to use? Any suggestions? - by El Forum - 01-11-2010, 02:53 PM
Which session library to use? Any suggestions? - by El Forum - 01-11-2010, 03:00 PM
Which session library to use? Any suggestions? - by El Forum - 01-11-2010, 03:07 PM
Which session library to use? Any suggestions? - by El Forum - 01-11-2010, 03:14 PM
Which session library to use? Any suggestions? - by El Forum - 01-12-2010, 06:37 AM
Which session library to use? Any suggestions? - by El Forum - 01-12-2010, 06:48 AM
Which session library to use? Any suggestions? - by El Forum - 01-12-2010, 07:22 AM
Which session library to use? Any suggestions? - by El Forum - 01-12-2010, 07:39 AM
Which session library to use? Any suggestions? - by El Forum - 05-01-2010, 05:51 AM
Which session library to use? Any suggestions? - by El Forum - 05-01-2010, 08:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB