Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Can I share Session variables across Applications?

Reply
Thread Tools

Can I share Session variables across Applications?

 
 
George Hester
Guest
Posts: n/a
 
      06-21-2004
In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do that in Windows 2000 SP3 IIS5 no .NET Framework? Thanks.

--
George Hester
__________________________________
 
Reply With Quote
 
 
 
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      06-21-2004
No.

http://www.aspfaq.com/2157

--
http://www.aspfaq.com/
(Reverse address to reply.)




"George Hester" <(E-Mail Removed)> wrote in message
news:ep#(E-Mail Removed)...
In one Application (2) the client is redirected to a Logon ASP in a
different Application (1). A Session Variable is made in Application 2
which needs to be recognized in Application 1. Can I do that in Windows
2000 SP3 IIS5 no .NET Framework? Thanks.

--
George Hester
__________________________________


 
Reply With Quote
 
 
 
 
Dave Anderson
Guest
Posts: n/a
 
      06-21-2004
George Hester wrote:
> In one Application (2) the client is redirected to a Logon ASP in a
> different Application (1). A Session Variable is made in Application
> 2 which needs to be recognized in Application 1. Can I do that in
> Windows 2000 SP3 IIS5 no .NET Framework? Thanks.


Yes, if you use your own session architecture and store the contents of the
variables in a DB.

I have session variables that span applications and servers inside our
domain -- including IIS4/5/6, Apache, and Tomcat servers.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.


 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      06-22-2004
What do you want to share ?

By nature, session variables are intendent to store session specific
information for a particular application. If you tell us what you try to do,
someone could come up with a better architecture suggestion.

Patrice

--

"George Hester" <(E-Mail Removed)> a écrit dans le message de
news:ep%(E-Mail Removed)...
In one Application (2) the client is redirected to a Logon ASP in a
different Application (1). A Session Variable is made in Application 2
which needs to be recognized in Application 1. Can I do that in Windows
2000 SP3 IIS5 no .NET Framework? Thanks.

--
George Hester
__________________________________


 
Reply With Quote
 
George Hester
Guest
Posts: n/a
 
      06-22-2004
Thanks for cart.zip. I saw after this post this was the way to go. Trouble is I am finding that different Applications are not not necessary for this issue to happen. Consider this:

The root is a FrontPage 2000 Sever Extended web. Application 2 is also a FrontPage 2000 Server Extended Virtual Directory of Application 1. In Application 2 there is a ASP with this in it:

<img src="/images/spacer.gif">
<img src="/images/adobelogo.gif">

The first fails while the second one succeeds.

I haven't been able to track down that anomoly yet. Application 2 has an images folder so I just stuck the spacer.gif in there and left the HTML alone. That fixed it.

I know this isn't a Session issue but the ability to "share" across Applications seems to be hazardous.

--
George Hester
__________________________________
"Aaron [SQL Server MVP]" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> No.
>
> http://www.aspfaq.com/2157
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "George Hester" <(E-Mail Removed)> wrote in message
> news:ep#(E-Mail Removed)...
> In one Application (2) the client is redirected to a Logon ASP in a
> different Application (1). A Session Variable is made in Application 2
> which needs to be recognized in Application 1. Can I do that in Windows
> 2000 SP3 IIS5 no .NET Framework? Thanks.
>
> --
> George Hester
> __________________________________
>
>

 
Reply With Quote
 
George Hester
Guest
Posts: n/a
 
      06-22-2004
Yes I was hoping that. This is just a way for determing if Cookies are enabled. The accessed page (In Application 2) sends the client to a logon page (in Application 1) if they don't have a Session not necessarily made in Application 2. The logon page (ASP) is in Application 1 the root. Since I test in Application 2 the ability to make a Session (cookie) and see if it exists in the logon page, the trouble appears.

--
George Hester
__________________________________
"Patrice" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> What do you want to share ?
>
> By nature, session variables are intendent to store session specific
> information for a particular application. If you tell us what you try to do,
> someone could come up with a better architecture suggestion.
>
> Patrice
>
> --
>
> "George Hester" <(E-Mail Removed)> a écrit dans le message de
> news:ep%(E-Mail Removed)...
> In one Application (2) the client is redirected to a Logon ASP in a
> different Application (1). A Session Variable is made in Application 2
> which needs to be recognized in Application 1. Can I do that in Windows
> 2000 SP3 IIS5 no .NET Framework? Thanks.
>
> --
> George Hester
> __________________________________
>
>

 
Reply With Quote
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      06-22-2004
Yes, note that http://www.aspfaq.com/2157 also states that this can happen
across defined virtual directories...

--
http://www.aspfaq.com/
(Reverse address to reply.)




"George Hester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Thanks for cart.zip. I saw after this post this was the way to go. Trouble
is I am finding that different Applications are not not necessary for this
issue to happen. Consider this:

The root is a FrontPage 2000 Sever Extended web. Application 2 is also a
FrontPage 2000 Server Extended Virtual Directory of Application 1. In
Application 2 there is a ASP with this in it:

<img src="/images/spacer.gif">
<img src="/images/adobelogo.gif">

The first fails while the second one succeeds.

I haven't been able to track down that anomoly yet. Application 2 has an
images folder so I just stuck the spacer.gif in there and left the HTML
alone. That fixed it.

I know this isn't a Session issue but the ability to "share" across
Applications seems to be hazardous.

--
George Hester
__________________________________
"Aaron [SQL Server MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> No.
>
> http://www.aspfaq.com/2157
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "George Hester" <(E-Mail Removed)> wrote in message
> news:ep#(E-Mail Removed)...
> In one Application (2) the client is redirected to a Logon ASP in a
> different Application (1). A Session Variable is made in Application 2
> which needs to be recognized in Application 1. Can I do that in Windows
> 2000 SP3 IIS5 no .NET Framework? Thanks.
>
> --
> George Hester
> __________________________________
>
>



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      06-23-2004
Why do you use two applications ? I would just test this by using two pages
into the same application ???

Patrice

--

"George Hester" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
Yes I was hoping that. This is just a way for determing if Cookies are
enabled. The accessed page (In Application 2) sends the client to a logon
page (in Application 1) if they don't have a Session not necessarily made in
Application 2. The logon page (ASP) is in Application 1 the root. Since I
test in Application 2 the ability to make a Session (cookie) and see if it
exists in the logon page, the trouble appears.

--
George Hester
__________________________________
"Patrice" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What do you want to share ?
>
> By nature, session variables are intendent to store session specific
> information for a particular application. If you tell us what you try to

do,
> someone could come up with a better architecture suggestion.
>
> Patrice
>
> --
>
> "George Hester" <(E-Mail Removed)> a écrit dans le message de
> news:ep%(E-Mail Removed)...
> In one Application (2) the client is redirected to a Logon ASP in a
> different Application (1). A Session Variable is made in Application 2
> which needs to be recognized in Application 1. Can I do that in Windows
> 2000 SP3 IIS5 no .NET Framework? Thanks.
>
> --
> George Hester
> __________________________________
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Can't share a printer across a wireless XP network.... Accomac Wireless Networking 0 11-12-2010 06:26 PM
share same session across sub domains. guoqi zheng ASP .Net 1 06-13-2005 01:38 PM
How can i share asp session data with asp.net session data far asl via DotNetMonster.com ASP .Net 3 03-23-2005 05:13 AM
session state variables across asp.net web apps... We lose them! =?Utf-8?B?d2lsYnVyODhAY29tbXVuaXR5Lm5vc3BhbQ==?= ASP .Net 2 03-09-2005 11:01 PM



Advertisments