Re: what in place of session variables

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



Once Membership is installed the use of the Profile can be used to store session data rather easily.

"Mark Fitzpatrick" <markfitz@xxxxxxxxxx> wrote in message news:eTAd1kFCJHA.3668@xxxxxxxxxxxxxxxxxxxxxxx
Using the ASP.Net membership provider that was available starting in ASP.Net 2.0. It has most of the logic all set for you and will set the encrypted forms authentication cookie for you as well.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Max" <mm> wrote in message news:48b529d9$0$1088$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
My website is encountering loss of Sessions most probably due to hosting service. Cannot use session mode other than InProc since server is not under my complete control. Main problem is that I save user authentication info into session variables, and once these variables fall to Null, user is sent again to the login page.

Is there any alternative idea to the use of session variables, anybody has an option.. A question is , how a protected page could know that user has passed authentication. Cookies ? Querystring variables ?

Thanks
Max


.



Relevant Pages

  • Re: Read session data of all users
    ... It should show how to share the ASP.NET Form authentication between several ... Now for the session variables themselves you have several options: ... even though session variables are not shared accross applications... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session Variables - why arent novice developers warned?
    ... The user selects a Customer in a browser and enters an order. ... and the same session variables. ... You can research session state very thoroughly without finding any ... with the use of Session Variables? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session Variables - why arent novice developers warned?
    ... very dangerous outcome which may result when the session variables are used ... Developers want the session to be preserved when a new browser ... You can research session state very thoroughly without finding any ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: authentication cookie vs session cookie
    ... doing 'cookie' authentication (effectively what you are doing when you use ... session variables as it relies on the session cookie that ASP.NET sends to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Postback erases web control text
    ... I'm using Windows XP and my version of IIS is 5.1. ... This login process is stored entorely in the session. ... As far as caching is concerned, I haven't specified anything to specifically ... are you wrapping each attempt to get/set the Session variables ...
    (microsoft.public.dotnet.general)