开发者

PHP Sessions not working in Internet Explorer, cookies are working great though

Im having trouble with sessions in IE. I have tested in IE 7-8, but it does not work in any of them. I can see that i am logged in, and then redirected, but the session is dropped somehow. It works great in Firefox, Chrome and Safari.

If i use the "remember me" function i made, then it also works in IE ?! So it cant be a problem with cookies ?

I researched the problem a lot and found some forums where开发者_如何学Go people suggested the following changes to config:

$config['sess_cookie_name']        = 'cisession'; 
$config['sess_expiration']        = 72000; 

This does not work either.

In the same forum, a guy says he found the solution in the local time:

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.

The problem is that the link he refers to does not work.

Does anybody here have a clue on whats the problem?

Thanks!


Are you using a php header redirect immediatly after setting the session? That has been an issue for me sometimes. Can be solved by doing a redirect with javascript on page load.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜