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, 7 1467
Thaynann <Th******@discussions.microsoft.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.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
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
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... Thaynann <Th******@discussions.microsoft.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.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
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.de
> 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**********@phoneanalyser.net> wrote in message
news:ep**************@TK2MSFTNGP10.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" 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
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message news:MP************************@msnews.microsoft.c om... Thaynann <Th******@discussions.microsoft.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.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
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******@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.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,
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.
"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******@discussions.microsoft.com> wrote in message news:49**********************************@microsof t.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,
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=75429713247
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******@discussions.microsoft.com> wrote in message news:49**********************************@microsof t.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, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |