Welcome Guest, Not a member yet? Register   Sign In
Session ID. problem
#1

[eluser]Unknown[/eluser]
hi every one.

why my session ID keep changing if im using crome, IE and Opera.
every time i submit. but my session is $config['sess_expiration'] = 7200;
it seem it always my session expired every seconds.

using my local machine it works fine in any browser but once i go live.
it is only working in Firefox.


pls. help to fix this problem.



#2

[eluser]CroNiX[/eluser]
That setting only tells it when the session expires, not when it updates it's session ID (to prevent session fixation). That setting is $config['sess_time_to_update'].
#3

[eluser]Unknown[/eluser]
thanks.

for the reply. but there is success. same thing happen.

i just wander, it is working in Firefox but not in other browser.


thanks
#4

[eluser]InsiteFX[/eluser]
try setting it to a very large value and see if it works:
Code:
$config['sess_time_to_update'] = 157680000;

You should give more information, like are you using database sessions.
How much data are you storing, are you using Ajax?

#5

[eluser]CroNiX[/eluser]
Also, if you have an underscore in your cookie names, try removing them. Some browsers don't like that and CI sessions rely on the cookie.




Theme © iAndrew 2016 - Forum software by © MyBB