HELP: Session is empty!

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!
 
M

mrwoopey

Sorry for posting to multiple newsgroups. Just needed an answer! The
reason why I posted to web services group was because I do have a web
service running that needs to access session variables.

Anyway, thank you for your link!

Phin


Alvin Bruney said:
first, you don't have to post this to multiple newsgroups. what does the
post have to do with webservices newsgroup for example?

here's a link to help you understand the process
http://www.developersdex.com/gurus/articles/746.asp

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
mrwoopey said:
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top