Session Variable vs Cookie

From: Wayne Wengert (wayneDONTWANTSPAM_at_wengert.com)
Date: 05/20/04


Date: Thu, 20 May 2004 17:17:11 -0600

Are Session variables the same as a cookie? In reading a couple of pages I
got from searches, I don't get the difference. Basically, I am currently
using simple session variables (e.g. Session("UserName") =
txtLastName.Text). I think they are expiring for some users (longer
sessions?) and I need to be able to set the expiration to something like
Now() plus 2 hours.

What is the right way to do this?

Wayne



Relevant Pages

  • Re: Session level Object
    ... I was reading another post and I discovered something that I'm sure you knew ... I came from old ASP where session variables ... Paul Ross ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Large Data pass page by page in ASP.Net
    ... > Thanks for reading my post! ... > I would like to ask a question about passing data in ASP.Net. ... Session variables have the best performance available, ... A web server with just 1G of memory can support thousands of 150kb ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Handle Session Timeout And Lost MemberID
    ... all nonexisting session variables return an empty string on reading ...
    (microsoft.public.inetserver.asp.general)
  • Performance Q..
    ... My development environments are ASP.Net and VB.Net and .NetFramework1.1. ... I remember reading "using less number of session variables is good for ... Now instead of using 20 session variables, I can use one session variable ... Lalit Singh ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Confusion on HTML visibility
    ... The session variable is simply a cookie as far as my ... browser is concerned. ... we hold the world constant (including session variables) you are correct. ... want a way to hide an image from unauthorized viewers, ...
    (alt.html)