For Programmers: Free Programming Magazines  


Home > Archive > C# > August 2004 > How to create a session cookie in ASP.Net/C#









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to create a session cookie in ASP.Net/C#
Will F

2004-08-09, 3:57 pm

Hi,

I have been looking at how to create a session cookie in ASP.Net which
is not persisted to disk and hence destroyed once the browser is
closed. I have not found any info anywhere on these groups (or in the
MSDN lib???) and thought others may be in a similar situation.

You simply set a cookie's expiry date to something in the past and it
is automatically treated as a session cookie.

Hope this helps to save some time for someone.

Regards,
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com