asp sessions use browser-based(temporary) cookies. If you have extremely tight security in your browser, that might explain it...
>I am trying to put a value in a sessin object to use in another page.
>Basically, I have a "login" page that process the username and password and I want to put a variable in the session object name "accessmode" or whatever, which would indicate the type of access the user has (ex, if the type is 1, or guest, only certain button would appear or text would tell them that they can't access something)
>
>For now, I tried using session("Acmode") = dataRs("Mode") (datars is a recordset to a sql table and I know that this particular part work). It seem that it just doesn't store the variable in the session as when I try to use it (for example response.write(session("Acmode")) it doesn't retrieve it at all. This doens't even seem to work in the same page that I assigned the value
>I am using VBscript as my scripting language if that can makes a difference.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement