Waspman
Posts: 948
|
| Posted: 11/13/2008, 7:59 AM |
|
My server people are telling me that to keep my application open all day and the sessions active I should use Cookies instead of session variables?
What do you think?
T
_________________
http://www.waspmedia.co.uk |
 |
 |
kevind
Posts: 251
|
| Posted: 11/13/2008, 8:23 AM |
|
one thing i saw suggested recently is to use a hidden IFRAME on your page that has a page as its source that auto-refreshes, keeping the session alive.
i've also found that using the 'Remember me' feature for logins make the application appear to be still connected without dumping out to a login page when the session expires.
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
Waspman
Posts: 948
|
| Posted: 11/13/2008, 9:09 AM |
|
Yeah, I use the iframe technique, but the session still gets dumped?
_________________
http://www.waspmedia.co.uk |
 |
 |
Oper
Posts: 1195
|
| Posted: 11/15/2008, 9:54 AM |
|
question waspman:
the session you need to keep alive are just the security session variable only?
also IIS/Apache may reset sometime and clean all your session variables.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
Waspman
Posts: 948
|
| Posted: 11/16/2008, 7:35 AM |
|
Yeah it's the reset that's the problem.
I timed it and it seems inconsistant despit what the host people say. So I had to reduce the iframe refresh to 5 mins and it seems OK now thanks.
_________________
http://www.waspmedia.co.uk |
 |
 |
Oper
Posts: 1195
|
| Posted: 11/17/2008, 3:23 PM |
|
hope it work, but still in hosting public enviroment
unless your have have you in a private pool.
any application problme for other hosting will reset IIS.
(Welcome to MSsoft)
one easy way is to save the 3 Security variable in a Cookie
and at every page or a Included header/bottom
set the 3 Session variable with the cookies
BUT the login page.
of course cookie expiration with 10-15min
but i hope the iframe refresh work for you.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
materix
Posts: 161
|
| Posted: 11/24/2008, 4:34 AM |
|
What does the code for a hidden iframe look like?
|
 |
 |
Oper
Posts: 1195
|
| Posted: 11/24/2008, 10:07 AM |
|
Quote materix:
What does the code for a hidden iframe look like?
Anything that dont let your session state die.
a simple
response.write now()
will do the trick.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
materix
Posts: 161
|
| Posted: 12/03/2008, 6:59 AM |
|
But how do you make an iframe hidden? Do you set the width and height to 0px?
|
 |
 |
Oper
Posts: 1195
|
| Posted: 12/03/2008, 1:12 PM |
|
yes sir
............. topmargin='0' leftmargin='0' frameborder='0' marginwidth='0' hspace='0' vspace='0' scrolling='no' width='1' height='1' ............
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |