On Tuesday, May 20, 2003, at 02:28 PM, Brad Perkins wrote:

In a site that uses sessions to track state data etc, if a user visits a page for the first time or comes back to that page after a lengthy interval it is desirable to display a page that presents itself as a new visit. However if a user comes back to that page shortly after their session has expired, you want to let them know so because their state data no longer is accessible.

How have others approached this problem?

Once you have logins, then a portion of your site becomes protected. No requests inside that protected realm can be made without a valid login in the session.


The user should _never_ be able to access a protected page "for the first time". You shouldn't have any links in your site inside the protected realm from outside the protected realm.

I handle this situation they way that is outlined in Basics/Login section of the demo site.

Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com



Reply via email to