Re: Best way to check a session var on each page?

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

From: Dimitri Glazkov (dimitri.glazkov_at_gmail.com)
Date: 12/29/04


Date: Wed, 29 Dec 2004 12:34:21 -0600

Jon,

Are you sure you are not duplicating the functionality already provided by
Forms authentication? If not, then do it in Application_AuthenticateRequest
method of your Global.asax.cs file.

:DG<

"Jon" <ruffles_@msn.com> wrote in message
news:10t5t2impn9f227@corp.supernews.com...
>I am setting a session var upon login that holds some data about the user.
>I need to check on every page to make sure the data is populated so if a
>user bypasses the login page they are redirected to login first! I know on
>each page load I can do a check of the session var and redirect if it's
>gone or the wrong value, but I'd like a way to do it from one location.
>What's the recommended method for this type of thing?
>
> Thanks
>
> --
> ********************************
> Jon
>



Relevant Pages

  • Re: Best way to check a session var on each page?
    ... >> I am setting a session var upon login that holds some data about the ... >> user bypasses the login page they are redirected to login first! ... >> each page load I can do a check of the session var and redirect if it's ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Best way to check a session var on each page?
    ... > I am setting a session var upon login that holds some data about the user. ... > user bypasses the login page they are redirected to login first! ... > each page load I can do a check of the session var and redirect if it's ...
    (microsoft.public.dotnet.framework.aspnet)
  • Best way to check a session var on each page?
    ... I am setting a session var upon login that holds some data about the user. ... each page load I can do a check of the session var and redirect if it's gone ... the recommended method for this type of thing? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)