I have a training app, inwhich there are flash training programs each of 1 hour long. These programs dont understand session. when a user clicks one of them, they go out of session and after 1 hour there is a acknowledgement.asp at the end, here i need to
have the user information from the session. How will I have that, if the session ends before that?I cannot use the info from the database bec since the session is dead - I even dont know the login information?
Can anyone help? On the web server the Session Timeout is 300 minutes which should be more than enough.
Keep your own cookie on the client and store their "session" data in a data base. Use the cookie as a key to pull out that data in acknowledgement.asp.
Thanks for your reply. I think I have to use cookies. I have a question with cookies. If no expiration date is set on the cookie then how long will it last...
Thanks for your reply. I think I have to use cookies. I have a question with cookies. If no expiration date is set on the cookie then how long will it last...
Cookies are working temporarily. But it still has couple of problems.
1. client has to make sure he has cookies 'ENABLED'. I dont know how to check for cookies from flash.
2. Even though the session is dead, using cookie feature has made the user to go directly to the acknowledgment page (url capture) and submitting it.
I still cannot understand why, even though the session time is set to 300 minutes, the session is dieing before that time...
1. client has to make sure he has cookies 'ENABLED'. I dont know how to check for cookies from flash.
Might ask in a Flash support group, much more likely you'll get helped there better than in an ASP Classic group.
2. Even though the session is dead, using cookie feature has made the user to go directly to the acknowledgment page (url capture) and submitting it.
Don't have a clue what you mean here. Cookies have nothing to do with sessions. You set a cookie for the user to identify them, then record each answer in a database matched to that cookie, usually as an index. On the final page, you read the database records
that match the cookie, and you have your results. But if you're writing this in Flash, you'll need to do all that in Flash, not ASP.
As an aside, I'd set an expiration for the cookie, then check the cookie on the first entry page and ask the user if they want to continue that session. If not, delete the cookie and write a new one, otherwise read the data that matches the cookie and start
from that point (record last question answered or the like). This will keep your users from killing you the first time their internet connection dies and when they reconnect they find they have to start over.
8 Posts
Session Alive Forever?
Sep 19, 2005 07:47 PM|willwinatlast|LINK
Thnx
8 Posts
Re: Session Alive Forever?
Sep 19, 2005 08:11 PM|Xanderno|LINK
8 Posts
Re: Session Alive Forever?
Sep 19, 2005 08:17 PM|willwinatlast|LINK
I have a training app, inwhich there are flash training programs each of 1 hour long. These programs dont understand session. when a user clicks one of them, they go out of session and after 1 hour there is a acknowledgement.asp at the end, here i need to have the user information from the session. How will I have that, if the session ends before that?I cannot use the info from the database bec since the session is dead - I even dont know the login information?
Can anyone help? On the web server the Session Timeout is 300 minutes which should be more than enough.
Thnx
9750 Posts
MVP
Re: Session Alive Forever?
Sep 20, 2005 08:11 AM|tomkmvp|LINK
Keep your own cookie on the client and store their "session" data in a data base. Use the cookie as a key to pull out that data in acknowledgement.asp.
8 Posts
Re: Session Alive Forever?
Sep 20, 2005 01:00 PM|willwinatlast|LINK
8 Posts
Re: Session Alive Forever?
Sep 20, 2005 01:49 PM|Xanderno|LINK
It'll last until the user closes the browser.
9750 Posts
MVP
Re: Session Alive Forever?
Sep 20, 2005 02:31 PM|tomkmvp|LINK
8 Posts
Re: Session Alive Forever?
Sep 22, 2005 03:17 PM|willwinatlast|LINK
Cookies are working temporarily. But it still has couple of problems.
1. client has to make sure he has cookies 'ENABLED'. I dont know how to check for cookies from flash.
2. Even though the session is dead, using cookie feature has made the user to go directly to the acknowledgment page (url capture) and submitting it.
I still cannot understand why, even though the session time is set to 300 minutes, the session is dieing before that time...
9750 Posts
MVP
Re: Session Alive Forever?
Sep 22, 2005 04:22 PM|tomkmvp|LINK
Check for these things:
http://www.aspfaq.com/show.asp?id=2157
4640 Posts
Re: Session Alive Forever?
Sep 22, 2005 04:28 PM|jeff@zina.com|LINK
Might ask in a Flash support group, much more likely you'll get helped there better than in an ASP Classic group.
2. Even though the session is dead, using cookie feature has made the user to go directly to the acknowledgment page (url capture) and submitting it.
Don't have a clue what you mean here. Cookies have nothing to do with sessions. You set a cookie for the user to identify them, then record each answer in a database matched to that cookie, usually as an index. On the final page, you read the database records that match the cookie, and you have your results. But if you're writing this in Flash, you'll need to do all that in Flash, not ASP.
As an aside, I'd set an expiration for the cookie, then check the cookie on the first entry page and ask the user if they want to continue that session. If not, delete the cookie and write a new one, otherwise read the data that matches the cookie and start from that point (record last question answered or the like). This will keep your users from killing you the first time their internet connection dies and when they reconnect they find they have to start over.
Jeff