FrankR
Posts: 154
|
| Posted: 04/09/2012, 12:31 PM |
|
I did really well over the weekend building a survey app, so we will be buying two licenses tomorrow as soon as my manager returns.
Two question that will hopefully wrap up that project:
1. It looks like some of the DTLookups I do are coming from a cache. It looks like the lookup in the database is not actually repeating. Can you tell me how to force this? I see options for Caching. I haven't touched the options, and it Appears to be off, but, behavior wise, it looks like things are being cached.
2. This is ASP.NET VB CCS 5 InMotion app. Can you tell me what I should do to ensure I have a very long - 8 hours or so - session timeout so that there isn't one while someone is working on this lengthy survey?
Thank you.
_________________
FR |
 |
 |
cvboucher
Posts: 191
|
| Posted: 04/10/2012, 9:52 AM |
|
One thing I've discovered with the InMotion templates is that is uses Forms Authentication for the security. It does populate the session variables but those usually go away after 15 minutes (depending on your IIS setting). Even after those session variables go away the app continues as if the user was still authenticated (I think for up to 30 days).
In one app where I relied on the session variables I added some code to the header include page to check if the user was still authenticated via forms authentication:
If HttpContext.Current.User.Identity.IsAuthenticated Then
and if the session variables were not populated, I would repopulate them by getting the user information from the database based on the user name:
HttpContext.Current.User.Identity.Name
HTH,
Craig
|
 |
 |
|