RE: Session variables

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mohamoss (mohamed.mossad_at_egdsc.microsoft.com)
Date: 04/14/04


Date: Wed, 14 Apr 2004 12:55:32 GMT

Hi
another way you can do it , it to store this in the application variable of
your asp.net and use the session ID as the string that you save the
variable with
   so you save this way
                              
Application.Add(session_ID,yourdata_you_want_to_save);
    and get the data this way
                          object whatever = Application.Get(session_ID);
hope this helps .
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC



Relevant Pages

  • Re: [PHP] module and access rights
    ... > so you store in your cookie the username and the check string. ... How, exactly, is that any more secure than a standard session identifier? ... >> because i can store in DB the sessionID, and check it to every DB ...
    (php.general)
  • Re: CGI::Session with MySQL Driver
    ... Sinan Unur a écrit: ... I want to store user_name in session table ... the string b7f26a2095fb2ff4e11e8ae1295d767e represent the sessionid what's wrong? ...
    (comp.lang.perl.misc)
  • Captcha did not work under PHP 5.3.3
    ... My captcha.php did not work under this version of PHP. ... //Start the session so we can store what the code actually is. ... We dont need a 32 character long string so we trim it down to 7 ...
    (alt.php)
  • Re: question about variable in session, viewstate ..
    ... you can store anything in the session. ... Not 100% on casting in VB, but there should be no conversion from string to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Weird PropertyBag problem, values wont change
    ... CSession - Data storage class for a session. ... CSessions - Collection of CSession objects for all logged in users. ... Public Property Let ID(ByVal vData As String) ... Public Sub Remove ...
    (microsoft.public.vb.controls)