Click here to Skip to main content
15,915,702 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ASP Session again Pin
Paul Watson1-Dec-03 22:47
sitebuilderPaul Watson1-Dec-03 22:47 
GeneralRe: ASP Session again Pin
BlackRider2-Dec-03 1:45
BlackRider2-Dec-03 1:45 
GeneralRe: ASP Session again Pin
Paul Watson2-Dec-03 1:52
sitebuilderPaul Watson2-Dec-03 1:52 
GeneralRe: ASP Session again Pin
BlackRider2-Dec-03 23:00
BlackRider2-Dec-03 23:00 
GeneralRe: ASP Session again Pin
Populate1233-Dec-03 21:39
Populate1233-Dec-03 21:39 
GeneralRegionInfo and CultureInfo (CurrentCulture/CurrentUICulture) Pin
CillyMe1-Dec-03 16:28
CillyMe1-Dec-03 16:28 
GeneralASP Sessions Pin
User 127821-Dec-03 14:00
User 127821-Dec-03 14:00 
GeneralRe: ASP Sessions Pin
theJazzyBrain1-Dec-03 21:57
theJazzyBrain1-Dec-03 21:57 
You can set session variables as such:
<br />
Session("userName") = strUserName<br />


and then access the variable as such:
<br />
strUserName = Session("userName")<br />


and you can check it within your include as such:
<br />
If Len(Session("userName"))=0 Then<br />
     Response.Redirect "login.asp"<br />
End If<br />

Or have a boolean variable:
<br />
If Not Session("isLogged") Then<br />
     Response.Redirect "login.asp"<br />
End If<br />


You can acces Session variable from anywhere in your ASP app.



theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
GeneralRe: ASP Sessions Pin
User 127822-Dec-03 10:45
User 127822-Dec-03 10:45 
GeneralRe: ASP Sessions Pin
Paul Watson1-Dec-03 23:02
sitebuilderPaul Watson1-Dec-03 23:02 
GeneralRe: ASP Sessions Pin
User 127822-Dec-03 10:44
User 127822-Dec-03 10:44 
GeneralSOAP Question Pin
ProffK1-Dec-03 2:20
ProffK1-Dec-03 2:20 
GeneralRe: SOAP Question Pin
Paul Watson1-Dec-03 23:06
sitebuilderPaul Watson1-Dec-03 23:06 
GeneralRe: SOAP Question Pin
ProffK1-Dec-03 23:18
ProffK1-Dec-03 23:18 
Generaldhtml/javascript/iframe/link inline html Pin
Maximilien30-Nov-03 12:52
Maximilien30-Nov-03 12:52 
GeneralRe: dhtml/javascript/iframe/link inline html Pin
theJazzyBrain1-Dec-03 22:00
theJazzyBrain1-Dec-03 22:00 
QuestionHow do I configure SSL? Pin
CillyMe30-Nov-03 6:24
CillyMe30-Nov-03 6:24 
GeneralChanging orientation of Page of printer to Landscape using ASP.... Pin
Pranoti28-Nov-03 7:26
Pranoti28-Nov-03 7:26 
GeneralRe: Changing orientation of Page of printer to Landscape using ASP.... Pin
Heath Stewart28-Nov-03 8:20
protectorHeath Stewart28-Nov-03 8:20 
Generalland record in GIS Pin
sanjay19527-Nov-03 19:10
sanjay19527-Nov-03 19:10 
GeneralRe: land record in GIS Pin
Bob Stanneveld27-Nov-03 22:07
Bob Stanneveld27-Nov-03 22:07 
GeneralASP - DATE question Pin
AGeNt7eVeN26-Nov-03 5:50
AGeNt7eVeN26-Nov-03 5:50 
GeneralRe: ASP - DATE question Pin
Populate1233-Dec-03 21:50
Populate1233-Dec-03 21:50 
GeneralPermissions problem, user doesn't have access to upload folder. Pin
chubbysilk26-Nov-03 3:59
chubbysilk26-Nov-03 3:59 
GeneralRe: Permissions problem, user doesn't have access to upload folder. Pin
Bob Stanneveld26-Nov-03 20:53
Bob Stanneveld26-Nov-03 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.