% ' Admin logout if Request.QueryString("f")="logout" then Session("uid")="" Session("usertype")="" Session.Abandon end if Dim strCookieName ' The name of the cookie we're processing Dim strCookieValue ' The value to be assigned to it strCookieName = "Signin" strCookieValue = "Sign out" strCookieValue1 = "Sign in" if Request.Cookies(strCookieName)=strCookieValue then ' sign out if Request.Form("hdnflag")=1 then if session("uid")<>"" then Response.Redirect ("Download.asp") end if end if Response.Cookies(strCookieName) = strCookieValue1 Response.Cookies(strCookieName).Expires = Date() + 300 Session("uid")="" Session("usertype")="" Session.Abandon 'Response.Write("cookie set and kiill session") End If %>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||