473,378 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Why won't my session stick? Please help me.

I'm using ASP 3.0 however there is ASP.NET, because I'm working an old
site that is built in ASP 3.0.
I hope you for getting any help for my problem from you.

So, my site's sessions are empty before its timeout.
I have searched and checked for long time around this problem, but I
can't fix the problem yet.

The session timeout is 20 minutes in IIS 5.1 by default.
I didn't set the timeout as "session.timeout=10" in codes of VBScript
pages.

I did a training with session behaviors along following:
I created a new myTEST site for test and created one page for it and
created Global.asa file. The Session_onStart event in Global.asa has
"Session('mySession')='is session'" code. The page writes that
session. Session.timeout property of the site (myTEST) is 10 in IIS. I
opened the page and when I did refresh the page after 10 or 11
minutes, the session was empty. I tried it in 5 or 8 or 2 minutes, the
session was valid.
So I assume that the training is true for session.timeout.

My original web site of work has many pages that upload files. May
uploading relates the problem I think. But I am not sure.

Please help me!!! What is going on?
Any suggestion will be highly appreciated!

Jun 8 '07 #1
2 1726
"Orgil" <or*****@yahoo.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
I'm working an old site that is built in ASP 3.0.
This newsgroup is for ASP.NET - please post your ASP Classic questions to:

microsoft.public.inetserver.asp.general
--
http://www.markrae.net

Jun 8 '07 #2
though this is the asp.net forum, let me see if I can help you out.
If I can remember correctly once your session times out you will loose your
session state variables.
When your session times out its like starting the session over again for the
user. so if you set your timeout to be 20 min or 2 mins once it times out
your varailbles are gone.

I have a practice in both from back in my ASP days, and I carried it over to
the .NET world, if I need to pass/store anymore then 4 varaibles in session
I would store them into a session state database, and track the variables by
a GUID generated by the user when they logged into the web app. this way
they would only loose the values if they closed down the browser.


"Orgil" <or*****@yahoo.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
I'm using ASP 3.0 however there is ASP.NET, because I'm working an old
site that is built in ASP 3.0.
I hope you for getting any help for my problem from you.

So, my site's sessions are empty before its timeout.
I have searched and checked for long time around this problem, but I
can't fix the problem yet.

The session timeout is 20 minutes in IIS 5.1 by default.
I didn't set the timeout as "session.timeout=10" in codes of VBScript
pages.

I did a training with session behaviors along following:
I created a new myTEST site for test and created one page for it and
created Global.asa file. The Session_onStart event in Global.asa has
"Session('mySession')='is session'" code. The page writes that
session. Session.timeout property of the site (myTEST) is 10 in IIS. I
opened the page and when I did refresh the page after 10 or 11
minutes, the session was empty. I tried it in 5 or 8 or 2 minutes, the
session was valid.
So I assume that the training is true for session.timeout.

My original web site of work has many pages that upload files. May
uploading relates the problem I think. But I am not sure.

Please help me!!! What is going on?
Any suggestion will be highly appreciated!

Jun 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: ndsoumah | last post by:
hello guys I'm trying to get access to variables I put in a session variable from another page and it fails... here's the exact situation main file page1.php
11
by: HolaGoogle | last post by:
hi all, can you please tell me what i should do to avoid session timeout when displaying my database info in my asp form (DisplayUserDatabase.asp)??? ** actualy it does load and display the...
14
by: Schoo | last post by:
I have an asp.net app that uses session objects (ag. session("UserID")). The app works fine in development/debug mode. I released it to the test server (Windows 2000 server with other .NET...
6
by: Jason | last post by:
Is it possible to store an entire datatable/dataset in session state? If so, could someone please provide a code snippet or a link to documentation for me please? (I'm having no luck at all) ...
31
by: Harry Simpson | last post by:
I've come from the old ASP camp where session variables were not used. When i started using ASP.NET in 2001, I started using them again because it was ok from what I'd read. I've been merrily...
3
by: Aaron | last post by:
Why do my session values return to nothing on post back? I want to click a button and have the row, as in: dataset.table(0).rows(THIS ROW NUMBER IS WHAT I AM TALKING ABOUT), either increment or...
6
by: christopher.j.just | last post by:
I need to set the information being passed through the fields (23 of them) in the form into a session. Where do I start? Thanks, Chris
2
by: RAM | last post by:
Hello, I am learning ASP.NET 2.0. Could you explain me please the difference when to use fields of a System.Web.UI.Page-derived class and whem I must use Session variable instead. For example I...
1
by: Orgil | last post by:
I'm using ASP 3.0 however there is ASP.NET, because I'm working an old site that is built in ASP 3.0. I hope you for getting any help for my problem from you. So, my site's sessions are empty...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.