Session Timed Out Issue (URGENT)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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,
 
Thaynann said:
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.
 
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" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>
</system.web>

HTH

Ollie Riches
 
Thaynann said:
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,
 
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 said:
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" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>
</system.web>

HTH

Ollie Riches
 
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,
 
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=75429713247

but im new to this and am not sure how to return the session cookie from my
get request.
 
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
 
Back
Top