![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
Session State
The program that I'm working on requires a user to login, normal right? Each time they hit a page I want a function called. I was thinking that in the Global.aspx.vb file under applicationbeginrequest I could put the call function in there, but it get's called when the page first loads. The very first time that I load the page to login it calls the app begin request sub. The vrey first time Sessions isn't running yet and so I cant use Sessions. Is there any procedure that will check to see if the session is started, and if it is then it'll go on and if not then it'll stop. What do you gues think?
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
I have done something like that in the past. I wanted a function called on all administrative pages, so I made a base page with the function that I wanted and inherited all of my administrative pages from that page.
As for the session start, there is a Session_Start method inside the global.asax. Why can't you put it there? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|