Help With Losing Session State In ASP Application

Help With Losing Session State In ASP Application

am 11.01.2008 19:36:21 von andy.mcvicker

Hi Gang

I need help. I have an ASP application that in a nutshell allows data
entry on a main page. The problem is I'll have users that enter some
data and save it. Then they'll enter some more data and then leave it
for 30 mins, 2 hours or whatever. So when they come back they've lost
the session state and when they try to save their data, the
application goes to a friendly error page saying they've lost the
state.

There has to be a better way to handle this. Could I grab some
session variables stored in cookies and then somehow restart the
session allowing the user to save their information? Do you have any
other ideas.

Please help as this is causing us a lot of grief. I'm sick of telling
our users "Ok everyone please remember to save every ten minutes if
you have the application open." They want to kick the IT guy. :-(

Thanks
Andy

Re: Help With Losing Session State In ASP Application

am 11.01.2008 20:11:33 von Jon Paal

Forms aren't typically session dependent.

Sounds like a design/logic issue. What does submitting a data entry form have to do with session state ?
They should be able to submit a form anytime and have the information processed as needed.

Session data should be created after the form is submitted. If the session loss is associated with login authentication, then it is
valid. if the login has expired they should login again.

Cookies may be the answer to preserving some partial data entry if login expiration is the issue.

Data forms could check for existence of cookie info and refill partial entries so the user is not required to refill the entire
form.


"Andy" wrote in message news:5176ffac-a74c-4e41-8eab-70f59b869f72@k2g2000hse.googleg roups.com...
> Hi Gang
>
> I need help. I have an ASP application that in a nutshell allows data
> entry on a main page. The problem is I'll have users that enter some
> data and save it. Then they'll enter some more data and then leave it
> for 30 mins, 2 hours or whatever. So when they come back they've lost
> the session state and when they try to save their data, the
> application goes to a friendly error page saying they've lost the
> state.
>
> There has to be a better way to handle this. Could I grab some
> session variables stored in cookies and then somehow restart the
> session allowing the user to save their information? Do you have any
> other ideas.
>
> Please help as this is causing us a lot of grief. I'm sick of telling
> our users "Ok everyone please remember to save every ten minutes if
> you have the application open." They want to kick the IT guy. :-(
>
> Thanks
> Andy