CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 extend session timeout for a particular ASP page

Print topic Send  topic

Author Message
charles

Posts: 59
Posted: 10/24/2008, 3:36 AM

Hi All,
I have a page with an editable grid form to enter details of several employees in an HRMS system.
I need to extend the session timeout for this particular page accordingly.
I read somewhere in the forum that command.timeout will do the trick, but do not know the specific place in the page to place this code.
I do not intend to extend the session time out for the other pages in the project.Only for this specific page.
Regards,
charles
View profile  Send private message
Trigger
Posted: 10/24/2008, 6:31 PM

Hi,
Is the page timing out? The problem that I am having is, the timeout
parameter
is used to give the server more time to respond to requests.
For example, if the server side code is doing a particularly long running
SQL
or a complex piece of code is taking a long time to process on the server
side.

It doesn't have anything to do with filling out the data in a page because
at
that point, you are disconnected from the server.

In client/server technology, you connect to the server, make a request,
wait for the response and disconnect from the server. If it takes a long
time
to respond because the SQL is complex or the database is slow, you increase
the timeout parameter in the connection. It affects the entire application
because the connection timeout parameter is at the connection level.

If the network is slow, you might have
to increase the connection timeout because the server is waiting to hear
back from you that you have received the data.

Tim


"charles" <charles@forum.codecharge> wrote in message
news:64901a53c61f75@news.codecharge.com...
> Hi All,
> I have a page with an editable grid form to enter details of several
> employees
> in an HRMS system.
> I need to extend the session timeout for this particular page
> accordingly.
> I read somewhere in the forum that command.timeout will do the trick, but
> do
> not know the specific place in the page to place this code.
> I do not intend to extend the session time out for the other pages in the
> project.Only for this specific page.
> Regards,
> charles
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

charles

Posts: 59
Posted: 10/25/2008, 1:11 PM

Thanks for your response.
in this instance,the page is secured and the userID field is required for the form to be properly submitted. so once the session expires the form cannot submit.
Are you saying command.timeout cannot work for a specific page only?
regards,
charles
View profile  Send private message
Trigger
Posted: 10/28/2008, 8:53 PM

The session timeout is set in the webserver that you are using and
is not controlled on a page basis.

Tim

"charles" <charles@forum.codecharge> wrote in message
news:649037d6c29c3a@news.codecharge.com...
> Thanks for your response.
> in this instance,the page is secured and the userID field is required for
> the
> form to be properly submitted. so once the session expires the form cannot
> submit.
> Are you saying command.timeout cannot work for a specific page only?
> regards,
> charles
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

charles

Posts: 59
Posted: 10/29/2008, 2:52 AM

Thanks. Now i know.
regards
charles
View profile  Send private message
asoares


Posts: 8
Posted: 10/31/2008, 2:49 AM

My dear

To extend the time inside the server is a solution, but it extends the time for all pages in all sites or in a particular web site. It may be not a good idea when you need an extra time session for ONE SPECIFIC particular page.

I have worked with market research, having applied many WEB questionaries. Some of them are long, inside one specific page. When the server "breaks" the session (timeout time), all answers are lost after submission.

I've tried many solutions - even using ajax for submiting the page after each clicks. But ajax features does not work, let's say, for clicks in radio buttons (very usual in quizzes).

The solution came from another way. When I need a page with NO TIMEOUT, I install INSIDE this page an invisible frame (or 1px x 1 px frame, let's say).
<IFRAME> ....</IFRAME>
Inside this iframe I run a ASP page (may be a single HTML) having a META REFRESH:

The meta tag belongs within the <head> of your HTML document. When used to refresh the current page, the syntax looks like this:

<meta http-equiv="refresh" content="600">

http-equiv="refresh"

This attribute tells the browser that this meta tag is sending an HTTP command rather than a standard meta tag. Refresh is an actual HTTP header used by the Web server. It tells the server that the page is going to be reloaded or sent somewhere else.

content="600"

This is the amount of time, in seconds, until the browser should reload the "current auxiliar inside page"

Since the refresh is ever made when you stay in the main page, you have an "FOREVER" page, becuase the session with the server is never closed, being refreshed at specifit time amounts defined in the content section of the auxiliar page.

This solution worked perfectly and my users never more lost answers in long questionaries. And the server still remains with the default session timeout, that is 20 minutes.

Try it!

Have a good job


_________________
Alcides Soares Filho
Clicks to Bricks
c2b@clickstobricks.info
Brasil
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.