View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
There's another possibility that I just thought about.  It is possible that your problem is related to the issue described in the Troubleshooting page of the FoxWeb documentation, under the title "Disappearing session variables and cookies".  Here's the related passage:
Sessions are keyed off of a cookie called FW_SessionID. One important characteristic of cookies is that they will only be sent to the server that originally sent them to the browser. The way that browsers identify a server is by the server name in the URL. If the server name changes, then the cookies received by the browser in previous calls are not sent.
 
If two server identifiers point to the same server, but are not exactly the same (for example localhost and 127.0.0.1, or foxweb.com and www.foxweb.com), the browser will still regard them as different servers. This is why you should never use fully qualified URLs in your links and redirect statements, unless you are sending the user to a different server.
 
To avoid problems where the URL changes in the middle of a session you should never use fully qualified URLs in your scripts (URLs that contain the server name), unless you are pointing to a resource on a different server. If you are pointing to a local script or static file, then you should stick to absolute, or a relative URLs, as described in the Locating and Addressing Scripts chapter.
 
One way to diagnose such problems is to compare the Session ID before and after the redirection. If they are different, then the reason is most probably caused by a change in the server name.
 

FoxWeb Support Team
support@foxweb.com email

Sent by Rich on 10/11/2003 04:59:32 PM:
Well, it works and then it doesn't work.  FoxWeb continue assigning new Session Id's for each new page loaded, and then all of a sudden the Session Id "sticks" and works properly.  This is all in one browser session -- so I open a browser, hit the pages, and then after a while the Session Id stops resetting itself and works properly.
 
I'd love to send you a link, but everything is running via localhost right now as I'm in development mode.  When I get my server loaded with FoxWeb I can send a link, but that may be a few weeks.
 
-- Rich
Sent by FoxWeb Support on 10/10/2003 04:58:29 PM:
FoxWeb keeps track of Session IDs using cookies.  If it does not detect a cookie called FW_SessionID, then it generates a new Session ID and returns it to the browser in the form of a cookie.  The particular cookie tag that FoxWeb uses to return Session IDs instructs browsers to remember the cookie until they are restarted.
 
If the Session ID changes for the same browser, then either the browser was restarted between the two requests, or it is configured to not support cookies.
 
If the above information does not help you solve the problem, please send us a link to the offending page.  In your email please also specify the version of FoxWeb you are using.

FoxWeb Support Team
support@foxweb.com email

Sent by Rich on 10/09/2003 09:03:02 PM:
I'm getting a new SessionID number within a single browser session sporadically.
 
I've built a "Login" webpage.  The SessionId is noted at each call of the login process to see how many invalid logins are attempted in one session.  If too many invalid attempts are made then an error page is shown.
 
Each invalid attempt is stored in a .DBF.  If more than 5 attempts are made within the same SessionID then an error page is shown.
 
But each login attempt is *sometimes* given a new SessionID number.  Sometimes it works and the session id is consistent as it should be, and other times a new session ID is generated by FoxWeb in the same browser session for each login attempt.
 
Here is a sample from me hitting the "Login" button repeatedly in the same browser session:
 
DateTime                     SessionID
-----------------------------------
10/09/03 10:51:05 PM   12F1CZ86Y1
10/09/03 10:51:06 PM   12F1CZ8YM1
10/09/03 10:51:07 PM   12F1CZ9QS1
10/09/03 10:51:08 PM   12F1CZAGN1
10/09/03 10:51:09 PM   12F1CZBB01
10/09/03 10:51:10 PM   12F1CZCGD1
10/09/03 10:51:11 PM   12F1CZD3H1
10/09/03 10:51:12 PM   12F1CZDT81
10/09/03 10:51:13 PM   12F1CZEFA1
10/09/03 10:51:14 PM   12F1CZFDH1
10/09/03 10:51:15 PM   12F1CZGJ71