|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Multiple sessions, how to kill only oneI have 2 sessions that get created. One when the user logs in called
"uname" and another called "idrma" when that user choses to begin a repair request. I know <%session.abandon%> will kill both sessions, how to I only target one? "Mangler" <dwald***@directwireless.com> wrote in message You mean two session VARIABLES.news:1160508629.445274.188010@e3g2000cwe.googlegroups.com... >I have 2 sessions that get created. One when the user logs in called > "uname" and another called "idrma" when that user choses to begin a > repair request. I know <%session.abandon%> will kill both sessions, > how to I only target one? > To create a session variable: Session("Uname") = "Some value" To "kill" it: Session("Uname") = "" -- Mike Brind <% Session.Contents.Remove("uname") %>
Would this work the same? Mike Brind wrote: Show quoteHide quote > "Mangler" <dwald***@directwireless.com> wrote in message > news:1160508629.445274.188010@e3g2000cwe.googlegroups.com... > >I have 2 sessions that get created. One when the user logs in called > > "uname" and another called "idrma" when that user choses to begin a > > repair request. I know <%session.abandon%> will kill both sessions, > > how to I only target one? > > > > You mean two session VARIABLES. > > To create a session variable: Session("Uname") = "Some value" > > To "kill" it: Session("Uname") = "" > > -- > Mike Brind Yes. No. My method retains the session variable, but sets its value to an
empty string. Yours removes it altogether from the collection. You can test the content/value of your session variables like this: For each x in Session.Contents Response.Write x & ": " & Session.Contents(x) & "<br />" Next -- Show quoteHide quoteMike Brind "Mangler" <dwald***@directwireless.com> wrote in message news:1160510317.847059.132120@m7g2000cwm.googlegroups.com... > <% Session.Contents.Remove("uname") %> > > Would this work the same? > > > Mike Brind wrote: >> "Mangler" <dwald***@directwireless.com> wrote in message >> news:1160508629.445274.188010@e3g2000cwe.googlegroups.com... >> >I have 2 sessions that get created. One when the user logs in called >> > "uname" and another called "idrma" when that user choses to begin a >> > repair request. I know <%session.abandon%> will kill both sessions, >> > how to I only target one? >> > >> >> You mean two session VARIABLES. >> >> To create a session variable: Session("Uname") = "Some value" >> >> To "kill" it: Session("Uname") = "" >> >> -- >> Mike Brind >
Convert the code from gb2312 to unicode in ASP
retreiving data from html page Quizz script performance bug -- too many questions? interesting problem... call store procedure for inserting data in asp SMTP Assign Javascript value to asp session variable how to run a bat file in remote PC through ASP XML - load contents onto page. Running Bat file from ASP on Windows Server x64 problem. |
|||||||||||||||||||||||