Problem setting cookie in Internet Explorer

S

sophie_newbie

Hi,

I'm using the python to set a cookie when a user logs in. Thing is it
doesn't seem to be setting properly in Internet Explorer. It works
grand in Firefox. Its basically:

c = Cookie.SimpleCookie()

c['username'] = uname

c['password'] = pword

print c

print pageContent

And thats it. I've a suspicion that it could be something to do with
the expiry time of the cookie. But I'm really not sure and don't
really know where to go with it. I've tried it on Internet Explorer on
2 machines and get the same problem.

Thanks for any help...
 
M

Mike Driscoll

Hi,

I'm using the python to set a cookie when a user logs in. Thing is it
doesn't seem to be setting properly in Internet Explorer. It works
grand in Firefox. Its basically:

c = Cookie.SimpleCookie()

c['username'] = uname

c['password'] = pword

print c

print pageContent

And thats it. I've a suspicion that it could be something to do with
the expiry time of the cookie. But I'm really not sure and don't
really know where to go with it. I've tried it on Internet Explorer on
2 machines and get the same problem.

Thanks for any help...

Did you make sure cookies are enabled in Internet Explorer?

You might also take a look at these pages:

http://www.voidspace.org.uk/python/articles/cookielib.shtml
http://www.voidspace.org.uk/python/recipebook.shtml#cookielib

They seem quite informative.

Mike
 
S

sophie_newbie

I'm using the python to set a cookie when a user logs in. Thing is it
doesn't seem to be setting properly in Internet Explorer. It works
grand in Firefox. Its basically:
c = Cookie.SimpleCookie()
c['username'] = uname
c['password'] = pword
print pageContent
And thats it. I've a suspicion that it could be something to do with
the expiry time of the cookie. But I'm really not sure and don't
really know where to go with it. I've tried it on Internet Explorer on
2 machines and get the same problem.
Thanks for any help...

Did you make sure cookies are enabled in Internet Explorer?

You might also take a look at these pages:

http://www.voidspace.org.uk/python/...pace.org.uk/python/recipebook.shtml#cookielib

They seem quite informative.

Mike

Ya cookies are def enabled, will check that out thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top