M
mrwoopey
Hi,
I have a ASP.NET application with two frames (both are ASPX pages).
Once my app starts running, Session_Start fires in global.asax, like
it should. When I press a button within the top frame, it displays a
chart (OWC) in the bottom frame.
I am storing info in session variables in the top frame ASPX page. For
some reason the Session_Start fires a second time, which then wipes
out all of my Session variables! This second firing of the
Session_Start event only happens when I press the button in the top
frame to display the chart in the bottom frame.
How can I prevent Session_Start firing in global.asax the second time?
I've tried the following (which nothing works):
1. added a dummy session variable in the bottom frame (and the main
frame)
2. enableSessionState is true in all pages
3. in my web.config file under session state I have, "mode= "InProc""
and "cookieless="false""
Basically, how can I keep my Session (by not having Session_Start fire
a second time)?
Your help is appreciated. Please post.
Thanks,
Phin
PS
If for some reason I can't get around this, other than storing info in
a database or cookies, how else can I keep info that I need to access
later (during a session)? I read somewhere that you can use globals? I
tried it and it wouldn't save? How would that work? Can I write to the
cache? For any of these (or another method) please post. Thanks!
I have a ASP.NET application with two frames (both are ASPX pages).
Once my app starts running, Session_Start fires in global.asax, like
it should. When I press a button within the top frame, it displays a
chart (OWC) in the bottom frame.
I am storing info in session variables in the top frame ASPX page. For
some reason the Session_Start fires a second time, which then wipes
out all of my Session variables! This second firing of the
Session_Start event only happens when I press the button in the top
frame to display the chart in the bottom frame.
How can I prevent Session_Start firing in global.asax the second time?
I've tried the following (which nothing works):
1. added a dummy session variable in the bottom frame (and the main
frame)
2. enableSessionState is true in all pages
3. in my web.config file under session state I have, "mode= "InProc""
and "cookieless="false""
Basically, how can I keep my Session (by not having Session_Start fire
a second time)?
Your help is appreciated. Please post.
Thanks,
Phin
PS
If for some reason I can't get around this, other than storing info in
a database or cookies, how else can I keep info that I need to access
later (during a session)? I read somewhere that you can use globals? I
tried it and it wouldn't save? How would that work? Can I write to the
cache? For any of these (or another method) please post. Thanks!