View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
I have a problem with the session objet that seem to not take the value that I give to it or  only take it when he whan.
I whan to use Session Object to be like Auth Object so I have made function to Login, Logout, SetTimeOut... etc... Variable Uername, LoginTime...
Here' how it's work for me:
foxweb.exe call Login?Usename=1&Password=1&Login=1
In fw_enter I check if the user have login=1. If yes I bypass the validation and return to Login.prg
In Login the user is validate and if everyting is ok then i use the code:
Session.SetVar("User") = lcUsename
And I have check and the variable are not empty.
After the program redirect by HTML META tag to the second module Enter.prg
Agains we pass in fw_entre but now Login = "" so a validate if the Session Object have the information Username, LoginTime but it's don't so I'm not login and "kick out". When I check with de fwx that came with foxweb the session variable has noting in except the cookie id, no lasthit, no variable.
If I try a few time with the same session sometime it's pass !
The worst is that in fw_enter I have made the code IF Login = 1 then Session.SetVar("allo","oui") and made write this at the end on Login and it's work but the other value don't pass.
Can somebody help.
Thank for your help
The problem is the the user is found but the code for the session don't seems to work.