session cookie in Internet Explorer.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
informvarma
Forum Newbie
Posts: 3
Joined: Thu Jul 10, 2008 1:32 am

session cookie in Internet Explorer.

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: session cookie in Internet Explorer.

Post by pickle »

using $_SESSIONS takes care of it's own cookie, so you don't need to set your own.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
informvarma
Forum Newbie
Posts: 3
Joined: Thu Jul 10, 2008 1:32 am

Re: session cookie in Internet Explorer.

Post 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.
Post Reply