Losing Session?

J

James

Session("UserName") is set when someone logs in. Get to a page that
displays a record where you can type a comment. The form has an onSubmit
event that calls a javascript function. That function sets a javascript
variable called beenChecked = true and then calls a PopUp window to spell
check the comment. When it's done spell checking, it calls the submit
method on the form tag of the opening window. The method evaluates that
it's "beenChecked" and submits.

For some reason, I'm losing all of my session variables using this approach.
Within the pop-up window and the original page, the session variable is
never altered explicitly. The page posts to the next page, which evaluates
the Session("UserName") variable, and it's blank.

What's causing me to lose my Session variables?

Thanks,
James
 
J

James

N/m...stupid spell checking program called Session.Abandon instead of
explicitly killing its own session variables.
 
B

Bullschmidt

Don't know if this has anything to do with it but I had problems where
session variables on my development PC were only being retained within
each folder but not across folders.

For example a session variable set in one folder could not be read in
another folder.

What solved the problem was in IIS going to the folders in question and
doing:
Right-click | Properties | In the Application Settings area to the right
of Application Name click on the Remove button even though the
Application Name box was already blank.

And I did NOT need to do this:
IIS | Default Web Site | Stop and then Start

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
 

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

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top