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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie Expiry Problem.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi Guys,

I have designed a simple site which contains add/modify delete of certain contact records.I have created a login page too.When u login a login cookie is created using the following command.

<cfcookie name=&quot;login&quot; value=&quot;username&quot;>

and then on every page i check that wether the cookie is defined or not.At logout the cookie is expired.

But the problem is whenever i add a record firsttime when i log in then it throws me out of the system and says u r logged out.But when i log in again and try to add something it is added.This is really strange because the system throws me out only at the first time when i try to add a record after that it works fine.Sometimes it does this problem more than one time.

Please suggest me what should i do to remove this problem .
Thanx in advance.
GG

 
Hi,

please show us a sample of code of your login page where you create the cookie and everything...

will help us understand the problem...
thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top