Page 1 of 1

session cookie in Internet Explorer.

Posted: Mon Apr 20, 2009 8:16 am
by informvarma
Hello all,
session level cookie in IE8 is not happening, any help in this regard is much appriciated.

the following code works good in FF. But in IE it fails giving a higher life time makes it work in IE. But i need a session cookie

setcookie('name', 'value', 0, '/', 'mydomain.com');

Thanks
Varma

Re: session cookie in Internet Explorer.

Posted: Mon Apr 20, 2009 10:15 am
by pickle
using $_SESSIONS takes care of it's own cookie, so you don't need to set your own.

Re: session cookie in Internet Explorer.

Posted: Tue Apr 21, 2009 1:02 am
by informvarma
pickle: I do not want to start a session, I just need a cookie that would be alive till the user closes the browser. Anyway the issue is resolved.

Looks like IE session cookies has problems with domain name having `-`, removed that and all is fine.