rvp032582
Posts: 47
|
| Posted: 03/26/2007, 12:17 PM |
|
does anyone know where (i'm assuming in the common, or classes, maybe other files) to increase the session time out? for example someone logs into their site to make some changes. they have to type a lot, and 30 minutes go by and they are finally finished. so they hit the submit button, and they are taken back to the log in screen. they lost all that they typed.
is there a way in CC to increase that time out/log out time, when someone is idle like that?
thanks
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 03/26/2007, 3:41 PM |
|
I your Common.asp file you can add the following:
Session.Timeout = 60
which would chnge the timout to 60 minutes.
However, depending on the version of IIS which you are using, it may not be
honored if it is greater than the global value in IIS.
A better solution would be to embed a keeplive script in an IFRAME.
|
|
|
 |
Oper
Posts: 1195
|
| Posted: 03/28/2007, 1:02 PM |
|
right, also if you have access to the IIS (intranet instaltion or server at home)
Setup different timeout on IIS Properties
Must Hoster wont honor the Session.Timeout, so you will have to go with a iframe like
benjamin suggested.
Quote Benjamin Krajmalnik:
I your Common.asp file you can add the following:
Session.Timeout = 60
which would chnge the timout to 60 minutes.
However, depending on the version of IIS which you are using, it may not be
honored if it is greater than the global value in IIS.
A better solution would be to embed a keeplive script in an IFRAME.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
rvp032582
Posts: 47
|
| Posted: 04/18/2007, 9:40 AM |
|
i don't have access to the IIS or anything like that. this keep live script. i've never heard of it. is this something i can copy and paste quickly? or is something i have to spend hours tying to get to work in these code charge generated pages? also, the session time out suggestion to be in the common.asp file: where do it put that? just any ol' where i want?
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 04/18/2007, 1:24 PM |
|
It is not difficult to do.
Create a new page inside CCS. Call it "keepalive".
Its html should look like this:
<html>
<head>
<script language="JavaScript">
<!--
function move() {
window.location = 'keepalive.asp?xxx='+escape(new Date());
}
//-->
</script>
</head>
<body onload="timer=setTimeout('move()',300000)">
{KeepAlive}
</body>
</html>
Note that {KeepAlive} is a label.
Now, on the beforeshow for the KeepAlive label, insert the following:
EventCaller.Value = CCGetParam("xxx", "")
That is you entire keepalive script (which in this case is set to 5 minutes
(300000).
Now, to integrate it into your pages where you want to maintain the
keepalive, you simply insert the following code:
<iframe src ="keepalive.asp" width="0" height="0"></iframe>
If you want this to be on every page, add this to your footer page.
Hope this helps.
|
|
|
 |
|