Welcome Guest, Not a member yet? Register   Sign In
Sessions not working in IE 7
#21

[eluser]kyko[/eluser]
I've found the solution to my problem. Apparently, IE7 drops sessions that are set when your machine's date and time is not correctly configured. Follow this link, No Cookies in IE??. I hope it made your day as it made mine.

Thanks for this great community!
#22

[eluser]Brad Street[/eluser]
Just thought I'd note that I've been having a problem with CI sessions and IE7. When I log in to a project I'm building (that does security checking using CI session variables), all works fine in Firefox. However, with IE7, once I login and try to navigate to a protected page, the session seems lost and I am sent back to the login screen. I've found that by adding a trailing slash "/" to the URL of the page I am unable to access, everything works fine. I have no explanation as to why this works, but hope that someone else may find it useful.
#23

[eluser]Brad Street[/eluser]
Also wanted to note that this only happens on my home computer, but IE7 on my computer at work works fine. Tried changing the variable name from ci_session to cisession, but this appeared to have no effect.
#24

[eluser]Justin Patel[/eluser]
[quote author="Derek Allard" date="1221186430"]Underscores? Really? Wow. Can anyone else confirm this?[/quote]


Hay I confirm " _ " Is the problem. I just change the name without " _ " and works great Smile


Cheers ...


Thanks for this solution
#25

[eluser]Derek Jones[/eluser]
What version are you on, Justin? Again, I'm not buying it. I think your problem may be something that we fixed in 1.7.
#26

[eluser]Justin Patel[/eluser]
[quote author="Derek Jones" date="1225304184"]What version are you on, Justin? Again, I'm not buying it. I think your problem may be something that we fixed in 1.7.[/quote]

Yeah my problem was with, IE 7 it kept kick me off after I get logged in. But after I change the name of cookie without " _ " it works fine, I was using CI 1.4 , but as you have said you have fix this issue into latest version of CI ... Its great Smile
#27

[eluser]Thorpe Obazee[/eluser]
I searched the forum and found this out.

The problem:
Safari and IE7 didn't accept cookies

Fix:
My server time is way way late than what I have on my pc. I changed the
Code:
$config['sess_expiration']        = 7200;
to
Code:
$config['sess_expiration']        = 72000;
and it fixed the problem.
#28

[eluser]Chalda Pnuzig[/eluser]
I had the same problem.
I tried everything and I finally found the problem:

The date of server was incorrect (it was one day in the past)

Ie, Safari and Google Chrome probably check the local and server date.
#29

[eluser]Derek Jones[/eluser]
Thanks for closing the loop, Chalda, I knew it just wasn't making sense, particularly after we fixed the bug with the size of the cookie when using db sessions.
#30

[eluser]Muser[/eluser]
The underscore problem is not a CI problem. Is a problem with Internet Explorer (and Safari too as I know) with domain name's that contains the underscore "_" character. When an user of this browsers, try to login in a page like http://dev_domain.example.com, the cookie can't be stored.

I'm testimonial of this bug/problem in a non-CI page (page built in PHP from the scratch).

There is a KB page in MSDN but I can't find it now... However, you can read a list of user comments about it in the PHP manual:

http://es2.php.net/session_set_cookie_params




Theme © iAndrew 2016 - Forum software by © MyBB