Date:  10/30/2002 11:51:49 AM Msg ID:  000974
From:  Eloy Marroquín Thread:  000974
Subject:  Session Problems
I try to create users Session but, FoxWeb creates a SessionID on first hit and then in the second procedure it changes the SessionID and I loose Session variables.
 
 
1.- Default.htm redirect to /scripts/foxweb.exe/acceso@e:/soi/mhp/adm
 
2.-
procedure access
       Session.SetVar("xusr", 'xxx' )
       Session.SetVar("xpas", 'xxx' )
       xusr = Session.GetVar("xusr")
       xpas = Session.GetVar("xpas")
       strtofile(Session.getsessionID() + CRLF + xusr + CRLF + xpas, 'control.txt')
       html_out = CT + (MergeTxt(ReadFile('adm/access.htm')))
return
previous procedure generates the following file
control.txt contain :
--------
0ST0V2O7H2
xxx
xxx
----------
 
3.- then request user for username and password and action form send to checkusr procedure
 
procedure checkusr
       xusr = ff('username', '')
       xpas = ff('password', '')
       Session.SetVar("xusr", xusr )
       Session.SetVar("xpas", xusr )
       html_out = CT + (MergeTxt(ReadFile('adm/blank.htm')))
return
 
previous procedure generates the following file and FoxWeb changes the SessionID without closing the current window
control.txt contain
--------
0ST0V3B502
 

----------

Why does it change the SessionID
is it my programming?
is it FoxWeb itself?
 
if it is FoxWeb... how can i Fix it with programming , or what processes i need to run in the session so the programm keeps one SessionID could be the first that generates or the second but i need Only One SessionID for my check procedure
 
 
 
I´m running FoxWeb on Windows 2000 server and this is my configuration
 
Session TimeOut : 20 min.
 
Hide Windows : disabled
Close tables : checked
Use run-time DLL : unchecked
Log script errors : checked
1.x compatibility : checked
Restart Channels : checked
Run as a Service :  checked
Buffer Output : checked
Session Support : checked
Full paths in URLs : checked
Keep PRG Files : checked
 
If i have a configuration problem please let me know.
 
 
Thanks you