Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 12th, 2006, 5:46 PM   #1
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
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?
PhilBon is offline   Reply With Quote
Old Jun 27th, 2006, 7:13 PM   #2
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
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?
hoffmandirt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC