Re: Session object value not displaying

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Jul 6, 11:55 am, "Bob Barrows" <reb01...@xxxxxxxxxxxxxxx> wrote:
.Net Sports wrote:
sherlock, it's not working. None of the 3 work. I've even assigned
session("levelAcc") a hardcoded value : session("levelAcc") = 1, and
tried session("levelAcc") ="test", and it doesnt display . :-(

Wait a minute. Be more explicit please. Are you saying you have tried this?
<%
session("levelAcc") ="test"
Response.Write session("levelAcc")
%.

Or are you talking about setting the session variable value on one page and
attempting to display it on another? If so, at least make sure the above
test page successfully displays the word "test" when run.



Oh yes, they work, you must make a mistake wat you are not telling.

Like your browser having the session cookies switched off or not
using an ASP enabled server.

sherlock, thanks for helping...no, the cookies and server is good, on
this page in question when i do this:  <%= request.querystring
("level") %> from a querystring, it works.

That proves nothing. The querystring does not rely on cookies - it is just
taken from the url. Check out these articleshttp://classicasp.aspfaq.com/general/why-won-t-my-session-variables-s...http://classicasp.aspfaq.com/general/why-do-my-session/application-va...

Make sure  you have created an application for your website in IIS Manager

--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

OK, I was establishing the session object after a redirect to the
landingpage, so it wasn't reading it...i made sure the directory live
was set as an application...now everything works, thanx!
.



Relevant Pages

  • Re: passing a % value in a querystring
    ... Dan wrote: ... > I would like to pass a whereclause to a page but each time I send the ... If you're creating the querystring in server-side ... This email account is my spam trap so I ...
    (microsoft.public.scripting.vbscript)
  • Re: How to protect a connection string in ASP.
    ... > So are saying that having something like ... > Dim Conn ... The "bad" thing about this connection string is that you are using the ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Re: What does this do?
    ... which encodes strings to allow them to be used in the URL without ... & and = have special meanings in a URL querystring. ... If you need to pass data that contains these characters via querystring, ... This email account is my spam trap so I ...
    (microsoft.public.scripting.jscript)
  • Re: Replacing QueryString Name-Value
    ... bob, thank you. ... > That does not explain why you are trying to manipulate the querystring. ... >> how else can i keep up with the filter criteria values from combo ... This email account is my spam trap so I ...
    (microsoft.public.scripting.jscript)
  • Re: Replacing QueryString Name-Value
    ... >> Below is code i'm firing with OnChange Property of a combo named ... >> selected on the combo the existing querystring. ... >> Error occurs if user selects the same catID combo again after user ... This email account is my spam trap so I ...
    (microsoft.public.scripting.jscript)