473,748 Members | 10,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session expires

271 Contributor
i have used session in my web page. i have set the time out property to 20 in the web.config file. my problem is that my session gets expired even at the time of working. my web.config file settings is given below
Expand|Select|Wrap|Line Numbers
  1. [size=2][color=#0000ff]<[/color][/size][size=2][color=#800000]sessionState[/color][/size][size=2][color=#ff00ff] [/color][/size][size=2][color=#ff0000]mode[/color][/size][size=2][color=#0000ff]="InProc"[/color][/size][size=2][color=#ff00ff] [/color][/size][size=2][color=#ff0000]stateConnectionString[/color][/size][size=2][color=#0000ff]="tcpip=127.0.0.1:42424"[/color][/size][size=2][color=#ff00ff] [/color][/size][size=2][color=#ff0000]sqlConnectionString[/color][/size][size=2][color=#0000ff]="data source=127.0.0.1;Trusted_Connection=yes"[/color][/size][size=2][color=#ff00ff] [/color][/size][size=2][color=#ff0000]cookieless[/color][/size][size=2][color=#0000ff]="false"[/color][/size][size=2][color=#ff00ff] [/color][/size][size=2][color=#ff0000]timeout[/color][/size][size=2][color=#0000ff]="20"/>
  2.  
  3. [/color][/size]
even i tried it increasing to a value of 80. but nothing helped me.
can u tell how can i solve this problem.

what is the maximum value that i can give for this session time out. how to make the session not to get expired at the time of usage and it should expire only when the page remains ideal for that duration.

thanks,
Feb 7 '07 #1
6 1365
kenobewan
4,871 Recognized Expert Specialist
The timeout value is in minutes, so whether you set it to 20 or 80 you still have a problem...
Feb 7 '07 #2
karthi84
271 Contributor
The timeout value is in minutes, so whether you set it to 20 or 80 you still have a problem...
my problem is my session expires before the set time even if i am working on it. how to solve this problem.
Feb 7 '07 #3
kenobewan
4,871 Recognized Expert Specialist
If you rely on cookies for your session are they being blocked?
Feb 7 '07 #4
Frinavale
9,735 Recognized Expert Moderator Expert
Are you by any chance redirecting or transferring the user during the time the session variable is in use?
Feb 7 '07 #5
karthi84
271 Contributor
Are you by any chance redirecting or transferring the user during the time the session variable is in use?
no the users are not being transfered
Feb 8 '07 #6
karthi84
271 Contributor
If you rely on cookies for your session are they being blocked?

no the cookies are not blocked
Feb 8 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3539
by: PM | last post by:
I'm trying to make a kind of search history containing the 3 last searched words. So I'm using 3 Session Variables: Word1 / Word2 / Word3. In order to get this history working, I need to put the last searched word in the following Variable. Ex.: Session("Word3") = Session("Word2") Session("Word2") = Session("Word1")
12
18013
by: chrism | last post by:
Hello, I have a pop-up window that I would like to appear in front of the browser home page when a user opens IE. Problem is, I'd like it to never appear again if the user navigates back to the home page during their time using the browser. However, if the user closes the browser, then reopens, the pop-up should appear again. (you may have guessed that this will be used for public access pc's.) I want to try as best I can to catch...
1
3598
by: Jenn | last post by:
I have done alot of web work in all sorts of languages but I have never used the simple cookie. Question is How does one set and retrieve a simple session cookie. All it will do is have an image change on 1 page only with every new visitor, there are 5 images it should be random and stay the same unless the session is ended. Sounds pretty simple but I cannot find simple examples of a cookie doing anything similar to this. I found oodles...
11
6042
by: Jennifer | last post by:
Is there a way to check for to see if the user has session cookies enabled? I know how to check to see if they have cookies in general enabled, but how do you test for just session cookies? Thanks Jen
3
12398
by: Enoch Chan | last post by:
I would like to set a Session variable to a value. In Vbscript it should be Session("ZoomValue")=500 How can I set this session variable by using Javascript? Thanks
12
6993
by: ACaunter | last post by:
Hi all, I was wondering how i could write some code which would automatically open the Login Page once the session has expired? -- AdamPC@hotmail.com
14
2930
by: Martin Walke | last post by:
Hi all, Is there any limit to the number of session variables a site can have? And is that affected by global.asa at all? The reason why i ask is that i have a relatively simple site that relies on about 40 sesion variables and a mixture of vbs and js files. One of the session variables is an id number that gets incremented to point to the next piece of data to be displayed. This variable is initialised on the first page of the site...
4
11436
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the XMLHTTP object. However, when the page requested through the XML object makes a <%Response.Redirect()%> call, a new session is created each time. Is this a flaw in the XMLHTTP Object? How can I force the session to remain the same after a...
4
2873
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the session seems to be re-created and is an empty array. I have checked the session file and the variable is being stored against the session id, but I dont know why PHP is not picking up the session after I reload.. I have tried the usual suspects...
0
1480
by: Aarchaic | last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening First off i just post 3 detials like a name a age and a favourite number. that in turn goes to the next page where its being picked up by the php code and put into the Global Variable. the page uses the variables with no problem and you can select a link to go onto the next page where the number is being...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.