Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Persisting login cookie

Status
Not open for further replies.

dudleys

Technical User
Apr 28, 2005
31
AU
Hi,

Lets see if you can sort this one out?

I have a problem where my live web site is not persisiting the login cookie. It is working on my development PC.

The live cookie seems expire when the session timeout ends.

The code is the same for live and dev.

Should the cookie that gets created when I logon to both sites on my PC be the same name, or will .NET have seperate cookies???

I am using this code

Code:
                        FormsAuthentication.RedirectFromLoginPage(acc.UserEmail, chkPersist.Checked)

As I say the dev system seems to persist.

Any ideas?
 
Cookies are unique per domain, so ones from localhost do not interfere with ones from another domain. Maybe your browser is set to only accept session cookies from untrusted sites? Check the options in IE to be sure.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top