473,624 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session Timed Out Issue (URGENT)

I am developin an application that access a web site, i can get to the first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins (my
code executes in under 10 mins)

can anyone help me as to why this happens?

Thanx in advance,
Nov 17 '05 #1
7 1481
Thaynann <Th******@discu ssions.microsof t.com> wrote:
I am developin an application that access a web site, i can get to the first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins (my
code executes in under 10 mins)

can anyone help me as to why this happens?


Presumably because you've got a session timeout of 10 minutes - ASP.NET
will throw away the session after it hasn't been used for a certain
length of time. I'm sure you can increase the timeout, although I don't
know exactly where. You'd be better off asking in an ASP.NET newsgroup
- your question has nothing to do with C#, really.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2
As Jon said it can be configured for your asp.net application, this is done
via the web.config file in the project directory. Look for the sessionState
element under the system.web element it has a 'timeout' attbiute.

e.g.

<system.web>
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" timeout="20"/>
</system.web>

HTH

Ollie Riches

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
Thaynann <Th******@discu ssions.microsof t.com> wrote:
I am developin an application that access a web site, i can get to the
first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins
(my
code executes in under 10 mins)

can anyone help me as to why this happens?


Presumably because you've got a session timeout of 10 minutes - ASP.NET
will throw away the session after it hasn't been used for a certain
length of time. I'm sure you can increase the timeout, although I don't
know exactly where. You'd be better off asking in an ASP.NET newsgroup
- your question has nothing to do with C#, really.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 17 '05 #3
Thaynann wrote:
I am developin an application that access a web site, i can get to
the first page of the site, but when i POST to get to other pages, it
gives me a message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about
10mins (my code executes in under 10 mins)

can anyone help me as to why this happens?


Do you properly implemented session handling in your client code? Do
you track session cookies?

Cheers,
--
http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e
Nov 17 '05 #4
> As Jon said it can be configured for your asp.net application, this is
done
via the web.config file in the project directory. Look for the sessionState element under the system.web element it has a 'timeout' attbiute.
yes but the default is 20 minutes. his code executes in less than 10. So i
think the problem lies elsewhere. OP post some code.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Ollie Riches" <ol**********@p honeanalyser.ne t> wrote in message
news:ep******** ******@TK2MSFTN GP10.phx.gbl... As Jon said it can be configured for your asp.net application, this is done via the web.config file in the project directory. Look for the sessionState element under the system.web element it has a 'timeout' attbiute.

e.g.

<system.web>
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" timeout="20"/>
</system.web>

HTH

Ollie Riches

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
Thaynann <Th******@discu ssions.microsof t.com> wrote:
I am developin an application that access a web site, i can get to the
first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins (my
code executes in under 10 mins)

can anyone help me as to why this happens?


Presumably because you've got a session timeout of 10 minutes - ASP.NET
will throw away the session after it hasn't been used for a certain
length of time. I'm sure you can increase the timeout, although I don't
know exactly where. You'd be better off asking in an ASP.NET newsgroup
- your question has nothing to do with C#, really.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Nov 17 '05 #5
Hi,

How is the web site implemented?

Most probably you are not sending back the cookie that store the session
ID, or maybe the session ID is kept in a hidden field or maybe it's passed
in the URL
Does this happens if you do the request right away?
If so the above is your problem.

how to solve it?
Just find out how the website is keeping track of the session

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message
news:49******** *************** ***********@mic rosoft.com...
I am developin an application that access a web site, i can get to the
first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins
(my
code executes in under 10 mins)

can anyone help me as to why this happens?

Thanx in advance,

Nov 17 '05 #6
I may have found what causes my problem, when i call a POST to do what i
want, the session if (risessionid value) is changin, therefore not sayin i
have the right session, as far as i know it seems to be a cookie that stores
is, as when i track the requests (using fiddler) im getting the followin in
the header

Cookie
risessionid=754 29713247

but im new to this and am not sure how to return the session cookie from my
get request.

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

How is the web site implemented?

Most probably you are not sending back the cookie that store the session
ID, or maybe the session ID is kept in a hidden field or maybe it's passed
in the URL
Does this happens if you do the request right away?
If so the above is your problem.

how to solve it?
Just find out how the website is keeping track of the session

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message
news:49******** *************** ***********@mic rosoft.com...
I am developin an application that access a web site, i can get to the
first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins
(my
code executes in under 10 mins)

can anyone help me as to why this happens?

Thanx in advance,


Nov 17 '05 #7
Thanx for the responses guys, but i sorted it out, it didnt need to be the
most effiencent method, but i just simple created a Cookie object that stored
my session id, that worked perfectly.

thanx again

"Thaynann" wrote:
I may have found what causes my problem, when i call a POST to do what i
want, the session if (risessionid value) is changin, therefore not sayin i
have the right session, as far as i know it seems to be a cookie that stores
is, as when i track the requests (using fiddler) im getting the followin in
the header

Cookie
risessionid=754 29713247

but im new to this and am not sure how to return the session cookie from my
get request.

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

How is the web site implemented?

Most probably you are not sending back the cookie that store the session
ID, or maybe the session ID is kept in a hidden field or maybe it's passed
in the URL
Does this happens if you do the request right away?
If so the above is your problem.

how to solve it?
Just find out how the website is keeping track of the session

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message
news:49******** *************** ***********@mic rosoft.com...
I am developin an application that access a web site, i can get to the
first
page of the site, but when i POST to get to other pages, it gives me a
message (amongst the HTML code) "Session Timed Out"

It doesnt happen in IE, unless i leave the site sitting for about 10mins
(my
code executes in under 10 mins)

can anyone help me as to why this happens?

Thanx in advance,


Nov 17 '05 #8

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

Similar topics

2
3917
by: Andy | last post by:
Hi Gang Is there any way with ASP that I can tell if a user session has timed out? The problem is that we have a database app where a user session may time out. After this happens the user may try to save the data that is on there screen (without knowing they've timed out). I think what happens then (after the save) is that we get zero's in some of the fields in the database because the session has timed out.
0
1141
by: Chip | last post by:
I'm having some serrious issues with this method. I love the fact that you don't need to worry about users not accepting cookies, but... The issue is using the complete URL, with session id, in bookmarks and links. I thought I had read that this wouldn't matter -- if someone bookmarked a URL, and went to the site with an old session id embedded it would simply issue a new session id. This doesn't happen. I've had the following problems: *...
8
4513
by: Harry Simpson | last post by:
Got a web app that keeps the 20 sec session timeout default. Only deal is the user doesn't know the session timed out till they submit the page. On one page that i actually don't care if it times out i have a meta tag that refreshes at about 18 minutes so the screen never times out. On the other pages that i want to time out, i'd like to pop a warning that the screen has timed out that will stay visible til the user clicks OK...... ...
5
5274
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to happen to different users at different times, but I am only going off heresay. The aspnet worker...
4
4906
by: Nick | last post by:
Hi I am a little stuck. I have a web app which uses cookieless session management. I would like to inform a user when their session has ended but cannot work out how to implement. I thought of placing a redirect into the Session_End method in the global file but this does not work. To my understanding a session will end when it has been idle for the time specified in the web.config file. The user may still have the
3
9558
by: Timo | last post by:
In javascript code on MyPage.aspx, I set a hidden IFRAME's source url: myframe.location.href = 'someotherpage.aspx'; If the session has timed out, preventing someotherpage.aspx from being loaded into the IFRAME, where can that error condition be trapped? Thanks Timo
4
1651
by: Chris Newby | last post by:
I realize that I can handle "SessionEnd" from global.asax ... but it appears to me that this gets called without the context of a current web request. So given the following scenario: User logs in and session starts User is inactive longer than the session timeout setting Some thread, not associated with a request, detects the timeout and raises Session_End() The User comes back to the site presenting a timed-out session id ASP.NET...
3
3796
by: steph_mw | last post by:
I have a web application and when a user opens the application (using windows integration) and loads some data, it loads a ID number into the session state. If for some reason they go away from their PC and come back after 20 mintes they are receiving an error. This error relates to the fact that the session has timed out and all session variables have been cleared. The only issue I have with this is that the session timeout is set to 24...
7
7840
by: Microsoft Newsserver | last post by:
Hi Folks. I have an issue I need some help with if thats OK. I am running Framework 2.0 using Windows Integrated Security. For most of the application we manage session timeouts without the user knowing anything about it by ensuring all the essential objects ( only a few ) are in place during session start. For performance, there are some parts of the application which use static
0
8680
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
8625
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8482
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
7168
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
6111
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
4082
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...
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.