Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Session variables case-sensitive?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Astralis
Senior Member

USA
1218 Posts

Posted - 21 January 2005 :  16:11:23  Show Profile  Send Astralis a Yahoo! Message
I've read that session variables are not case-sensitive but I could not get them to pass until I made the case agree with the case of the form name.

Is this odd?

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 January 2005 :  16:43:51  Show Profile
What were you trying to do?
Referencing a session variable is not case sensitive.

So if you declare dim strUserID globally, you can reference it as STRUSERID or struserid.

Support Snitz Forums
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 21 January 2005 :  17:53:13  Show Profile  Send Astralis a Yahoo! Message
It was never dimmed. That shouldn't have caused it, right?

This creates the session variable:

If Request.Form("Passwordlogin") <> "" Then
Session("Password") = cStr(Request.Form("passwordlogin"))
END IF

This is the original code that called the variable:

<% If session("Password") = ""  Then %>
Access Denied
<% Else %>

That wasn't working because I kept getting "Access Denied". I switched it to this and now it works:

<% If session("password") = ""  Then %>
Access Denied
<% Else %>
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 23 January 2005 :  00:27:07  Show Profile
Are you on a Windows server? Usually session variable names are not case sensitive, but they probably are case sensitive in a Chilisoft server.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 02 February 2005 :  18:16:57  Show Profile  Send Astralis a Yahoo! Message
Windows server. Very odd.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07