Ask a Question related to ASP, Design and Development.
-
Gmmi #1
Session Variable
Is it true that when your ASP application jump's from one
Virtual Directory to another Virtual directory then you
cannot access session variables (which you created in
previous virtual directory pages).
Is there any way to work-around that? I don't want to
create the new session variables.
Gmmi Guest
-
#39634 [NEW]: session variable and normal variable
From: erhanbaris at gmail dot com Operating system: Win Xp SP1 PHP version: 5.2.0 PHP Bug Type: Variables related Bug... -
session variable and IE
Hi there, I have a session variable that holds an user name, after user logs in. All works just fine in development environment (Intranet) for IE... -
Session Variable in IIS 5
Hi, i can't use a Session variable in IIS 5, when i try to assign a value send to me next erro messages "Microsoft VBScript runtime (0x800A000D)... -
Datalist - how (if) to use a sub variable or session variable in the footer?
Hi, sorry to be greedy with all my posts lately, but can you tell I'm doing new things this week? I've just done my first datalist (a simple... -
[SESSION] Session variable deleted prior to command?
Hi all, I'm developing a database system on my local computer (OS/version details at bottom) with a simple user authentication using sessions. On... -
Gmmi #2
Re: Session Variable
Ray for me it's not working. Due you know any reason? or
you are here just for fun.
Gmmi.
one>-----Original Message-----
>Have you tested this to see if it's true?
>
>Ray at work
>
>"Gmmi" <ali760@hotmail.com> wrote in message
>news:307d01c33fdd$5d17f7c0$a601280a@phx.gbl...>> Is it true that when your ASP application jump's from>>> Virtual Directory to another Virtual directory then you
>> cannot access session variables (which you created in
>> previous virtual directory pages).
>>
>> Is there any way to work-around that? I don't want to
>> create the new session variables.
>>
>
>.
>Gmmi Guest
-
Ray at #3
Re: Session Variable
[email]ray@securitynat.com[/email].
If this is a joke to mess with my mind, hopes, and dreams, I'll hack into
your site and put pornography on it. ;]
Ray at work
"UR ednec" <pmckenna9999@yahoo.com> wrote in message
news:%23FelQF%23PDHA.1148@TK2MSFTNGP11.phx.gbl...> Ray! What is your email id? Got a job offer fer ya!
>
> "Ray at <%=sLocation%>" <ask@me.forit> wrote in message
> news:%23lZeC39PDHA.1624@tk2msftngp13.phx.gbl...>> > Have you tested this to see if it's true?
> >
> > Ray at work
> >
> > "Gmmi" <ali760@hotmail.com> wrote in message
> > news:307d01c33fdd$5d17f7c0$a601280a@phx.gbl...> >> > > Is it true that when your ASP application jump's from one
> > > Virtual Directory to another Virtual directory then you
> > > cannot access session variables (which you created in
> > > previous virtual directory pages).
> > >
> > > Is there any way to work-around that? I don't want to
> > > create the new session variables.
> > >
> >
>
Ray at Guest
-
Ray at #4
Re: Session Variable
If you have an application set in IIS for the directory, the session
variables will not carry through. Like, example:
[url]http://site/dir1/page1.asp[/url] contains:
session("test") = "test"
[url]http://site/dir2/page1.asp[/url] contains:
response.write session("test")
That will work fine, by default. But if you go into your IIS manager and
create an application on dir2, you will lose the session variables in there.
Session variables are application based. If you don't need to have this
directory specified as a separate application, just remove it in IIS, and
your session variables will carry through.
Ray at work
"Gmmi" <ali760@hotmail.com> wrote in message
news:06c601c33fe3$f15ce930$a001280a@phx.gbl...> Ray for me it's not working. Due you know any reason? or
> you are here just for fun.
>
> Gmmi.
>
>> one> >-----Original Message-----
> >Have you tested this to see if it's true?
> >
> >Ray at work
> >
> >"Gmmi" <ali760@hotmail.com> wrote in message
> >news:307d01c33fdd$5d17f7c0$a601280a@phx.gbl...> >> Is it true that when your ASP application jump's from> >> >> Virtual Directory to another Virtual directory then you
> >> cannot access session variables (which you created in
> >> previous virtual directory pages).
> >>
> >> Is there any way to work-around that? I don't want to
> >> create the new session variables.
> >>
> >
> >.
> >
Ray at Guest
-
Bob Lehmann #5
Re: Session Variable
Could you put some on my site too? I need the traffic.
Bob Lehmann
"Ray at <%=sLocation%>" <ask@me.forit> wrote in message
news:ufKUrR#PDHA.3664@tk2msftngp13.phx.gbl...> [email]ray@securitynat.com[/email].
>
> If this is a joke to mess with my mind, hopes, and dreams, I'll hack into
> your site and put pornography on it. ;]
>
> Ray at work
>
> "UR ednec" <pmckenna9999@yahoo.com> wrote in message
> news:%23FelQF%23PDHA.1148@TK2MSFTNGP11.phx.gbl...>> > Ray! What is your email id? Got a job offer fer ya!
> >
> > "Ray at <%=sLocation%>" <ask@me.forit> wrote in message
> > news:%23lZeC39PDHA.1624@tk2msftngp13.phx.gbl...> >> > > Have you tested this to see if it's true?
> > >
> > > Ray at work
> > >
> > > "Gmmi" <ali760@hotmail.com> wrote in message
> > > news:307d01c33fdd$5d17f7c0$a601280a@phx.gbl...
> > > > Is it true that when your ASP application jump's from one
> > > > Virtual Directory to another Virtual directory then you
> > > > cannot access session variables (which you created in
> > > > previous virtual directory pages).
> > > >
> > > > Is there any way to work-around that? I don't want to
> > > > create the new session variables.
> > > >
> > >
> > >
> >
>
Bob Lehmann Guest
-
Bob Lehmann #6
Re: Session Variable
How's that saying go...... about the cobbler having no shoes :>)
Bob Lehmann
"Ray at <%=sLocation%>" <ask@me.forit> wrote in message
news:#GAeap#PDHA.1720@TK2MSFTNGP11.phx.gbl...> Yeah, you need something on your site other than a mailto link. :]
>
> Ray at work
>
> "Bob Lehmann" <bob@activeinet.com> wrote in message
> news:OWqYMk%23PDHA.1720@TK2MSFTNGP11.phx.gbl...> into> > Could you put some on my site too? I need the traffic.
> >
> > Bob Lehmann
> >
> > "Ray at <%=sLocation%>" <ask@me.forit> wrote in message
> > news:ufKUrR#PDHA.3664@tk2msftngp13.phx.gbl...> > > [email]ray@securitynat.com[/email].
> > >
> > > If this is a joke to mess with my mind, hopes, and dreams, I'll hack>> >> > > your site and put pornography on it. ;]
> > >
> > > Ray at work
> > >
> > > "UR ednec" <pmckenna9999@yahoo.com> wrote in message
> > > news:%23FelQF%23PDHA.1148@TK2MSFTNGP11.phx.gbl...
> > > > Ray! What is your email id? Got a job offer fer ya!
> > > >
> > > > "Ray at <%=sLocation%>" <ask@me.forit> wrote in message
> > > > news:%23lZeC39PDHA.1624@tk2msftngp13.phx.gbl...
> > > > > Have you tested this to see if it's true?
> > > > >
> > > > > Ray at work
> > > > >
> > > > > "Gmmi" <ali760@hotmail.com> wrote in message
> > > > > news:307d01c33fdd$5d17f7c0$a601280a@phx.gbl...
> > > > > > Is it true that when your ASP application jump's from one
> > > > > > Virtual Directory to another Virtual directory then you
> > > > > > cannot access session variables (which you created in
> > > > > > previous virtual directory pages).
> > > > > >
> > > > > > Is there any way to work-around that? I don't want to
> > > > > > create the new session variables.
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Bob Lehmann Guest
-
Darren Woodbrey #7
Session Variable
I have a website running on IIS 5.0. The users are authenticated using
certificates mapped to their windows username. This si done behind the
scenes so the user does not actually have to login.
Is there anyway to get this username into a session variable? I am able to
do if I create an actual login page and have their usernames in a seperate
database.
Thanks,
Darren
Darren Woodbrey Guest
-
Blair Bonnett #8
Re: Session Variable
I think that using the Request.ServerVariables should do what you want.
Check out the MSDN information on it at
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/[/url]
servervariables.asp
Blair
Darren Woodbrey <darrenwoodbrey@hpfairfield.com> wrote in article
<udSR0H6JEHA.892@TK2MSFTNGP09.phx.gbl>...to> I have a website running on IIS 5.0. The users are authenticated using
> certificates mapped to their windows username. This si done behind the
> scenes so the user does not actually have to login.
>
> Is there anyway to get this username into a session variable? I am ableseperate> do if I create an actual login page and have their usernames in a> database.
>
> Thanks,
> DarrenBlair Bonnett Guest
-
Micosoft #9
Session variable
I need to save my user login information and am trying to use
Session.Add("USERID","NAME");
But then how do I get that information out into a local variable?
Thanks,
Bryan
Micosoft Guest
-
Ray at #10
Re: Session variable
I'm not familiar with any .Add method of the session object.
Session object:
Methods:
Abandon
Properties:
CodePage
Contents
LCID
SessionID
StaticObjects
Timeout
Value
Try: Session("USERID") = "NAME"
Also, this isn't database (db) related. Please use the
inetserver.asp.general for such questions.
Ray at work
"Micosoft" <garret_computing@hotmail.com> wrote in message
news:uL$C$$2NEHA.540@TK2MSFTNGP11.phx.gbl...> I need to save my user login information and am trying to use
> Session.Add("USERID","NAME");
>
> But then how do I get that information out into a local variable?
>
> Thanks,
> Bryan
>
>
Ray at Guest
-
TWACS #11
Re: Session variable
Thanks, I will
But just so you know when I used Session("USERID") = "NAME"; I get
'System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%23Lr6vD3NEHA.3960@TK2MSFTNGP10.phx.gbl...> I'm not familiar with any .Add method of the session object.
>
> Session object:
> Methods:
> Abandon
> Properties:
> CodePage
> Contents
> LCID
> SessionID
> StaticObjects
> Timeout
> Value
>
> Try: Session("USERID") = "NAME"
>
> Also, this isn't database (db) related. Please use the
> inetserver.asp.general for such questions.
>
> Ray at work
>
> "Micosoft" <garret_computing@hotmail.com> wrote in message
> news:uL$C$$2NEHA.540@TK2MSFTNGP11.phx.gbl...>> > I need to save my user login information and am trying to use
> > Session.Add("USERID","NAME");
> >
> > But then how do I get that information out into a local variable?
> >
> > Thanks,
> > Bryan
> >
> >
>
TWACS Guest
-
Aaron Bertrand - MVP #12
Re: Session variable
[url]http://www.aspfaq.com/5002[/url]
[url]http://www.aspfaq.com/5003[/url]
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"TWACS" <garret_computing@hotmail.com> wrote in message
news:OPdNAK3NEHA.3476@TK2MSFTNGP09.phx.gbl...> Thanks, I will
>
> But just so you know when I used Session("USERID") = "NAME"; I get
>
> 'System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
> expected
>
>
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:%23Lr6vD3NEHA.3960@TK2MSFTNGP10.phx.gbl...>> > I'm not familiar with any .Add method of the session object.
> >
> > Session object:
> > Methods:
> > Abandon
> > Properties:
> > CodePage
> > Contents
> > LCID
> > SessionID
> > StaticObjects
> > Timeout
> > Value
> >
> > Try: Session("USERID") = "NAME"
> >
> > Also, this isn't database (db) related. Please use the
> > inetserver.asp.general for such questions.
> >
> > Ray at work
> >
> > "Micosoft" <garret_computing@hotmail.com> wrote in message
> > news:uL$C$$2NEHA.540@TK2MSFTNGP11.phx.gbl...> >> > > I need to save my user login information and am trying to use
> > > Session.Add("USERID","NAME");
> > >
> > > But then how do I get that information out into a local variable?
> > >
> > > Thanks,
> > > Bryan
> > >
> > >
> >
>
Aaron Bertrand - MVP Guest
-
anonymous #13
Session variable
Maybe somebody had the same problem. we are running under
Windows 2003 with load balance for 2 web services and I
started to have a problem with session variable. Some time
is not available. Any idea why?
Example: on the same page 9 out of 10 okey for session
variable and 1 time is not there. No error msg displayed.
anonymous Guest
-
Ken Cox [Microsoft MVP] #14
Re: Session variable
Do I understand that you have more than one server that can handle requests?
If there's no guarantee that the same server will handle every request from
the same browser, you can't count on the Session to be there. With multiple
servers, people store the session state on a third machine or in a database.
See the section titled Session State Management here:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/DesLoadBalancedCluster.asp[/url]
"anonymous" <anonymous@discussions.microsoft.com> wrote in message
news:1abe01c51e83$6c5b02a0$a501280a@phx.gbl...> Maybe somebody had the same problem. we are running under
> Windows 2003 with load balance for 2 web services and I
> started to have a problem with session variable. Some time
> is not available. Any idea why?
> Example: on the same page 9 out of 10 okey for session
> variable and 1 time is not there. No error msg displayed.Ken Cox [Microsoft MVP] Guest



Reply With Quote

