Re: Best way to check a session var on each page?
From: Jon (ruffles__at_msn.com)
Date: 12/29/04
- Next message: Arne: "Authentications timeoout"
- Previous message: pmud: "Re: using EXCEL SHEET with ASP.NET"
- In reply to: Karl Seguin: "Re: Best way to check a session var on each page?"
- Next in thread: Dimitri Glazkov: "Re: Best way to check a session var on each page?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Dec 2004 14:12:08 -0500
That'll work. One question, what is the equivalent of the following in
VB.Net?
base.Load +=new EventHandler(CommonPage_Load);
Thanks!
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uWxKdPd7EHA.4004@tk2msftngp13.phx.gbl...
> Probably the best is to use a base page which all your other pages inherit
> from:
>
> I was going to give you an example, but why retype what someone else
> already
> has:
> http://www.codeproject.com/aspnet/AspNetInheritance.asp
>
> Hope that helps...
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "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
>>
>>
>
>
- Next message: Arne: "Authentications timeoout"
- Previous message: pmud: "Re: using EXCEL SHEET with ASP.NET"
- In reply to: Karl Seguin: "Re: Best way to check a session var on each page?"
- Next in thread: Dimitri Glazkov: "Re: Best way to check a session var on each page?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|