Avatar billede guzzie Nybegynder
08. maj 2001 - 09:21 Der er 9 kommentarer og
1 løsning

session timeout ??

Hey There

is it possible to link to a page that will timeout a session name
for example the timeout page could look like this
<% session(\"name\") = timeout %>
this however doent work
Does anyone have any ideas?

Guzzie
Avatar billede sone Nybegynder
08. maj 2001 - 09:22 #1
Session.abandon will timeout all sessions with the connected user.
Avatar billede netsrac Praktikant
08. maj 2001 - 09:22 #2
You can not timeout a session, but you can reset it:

<% Session(\"name\") =\"\"%>
Avatar billede guzzie Nybegynder
08. maj 2001 - 09:33 #3
hey guys
thanks for the quick reply
netsrac I used sone\'s as it timed out all the sessions but thanks anyway
Guzzie Have a Good Tuesday
Avatar billede guzzie Nybegynder
08. maj 2001 - 09:56 #4
Hey Again
//sone
does Session.abandon only
abandon sessions for the page you logged off from
Its working fine for me but I notice that I can still view my other pages ??
Any thoughts
Guzzie
Avatar billede sone Nybegynder
08. maj 2001 - 09:58 #5
sessions are running by users, not pages.
Avatar billede guzzie Nybegynder
08. maj 2001 - 09:58 #6
My code looks like this
<% Session.abandon
response.redirect (\"admin_login.asp?logoff=0\")
%>
is this correct
Avatar billede sone Nybegynder
08. maj 2001 - 09:59 #7
should be
Avatar billede guzzie Nybegynder
08. maj 2001 - 10:01 #8
damn :(
I use this checker on all my pages
<%
if session(\"login\") = false then
response.redirect (\"../admin_login.asp?error=0\")
end if
%>
Avatar billede guzzie Nybegynder
08. maj 2001 - 10:07 #9
damn it was we stuffing it up a little
it does work just fine
Guzzie
Avatar billede guzzie Nybegynder
08. maj 2001 - 10:16 #10
we = me :) oops
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester