Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > session variables getting overwritten

Reply
Thread Tools

session variables getting overwritten

 
 
Rahul Chatterjee
Guest
Posts: n/a
 
      08-02-2005
Hello All

I have 2 websites both using different style sheets (.css). The stylesheets
are stored in a session variable and get set at the time the site gets
invoked. What is happening is something like this.

I bring up the first site and navigate around. Everything is okay. The
stylesheets are correct and so on and so forth. When I click on a link to go
to the other site from the first site (I create a new instance of the
browser), that site comes up fine too, but the stylesheet of my first site
is reset to the stylesheet of the new site that I just opened.

Both these sites are mirror images of each other - i.e. they share the same
variables and represent similar information.

Is there any way to separate the session variables so that they dont clobber
each other.

Thanks


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      08-02-2005
Is this two web applications ? If yes, they shouldn't share the session
variables. For a start you could try to see which sessionid you have on both
sites...

--
Patrice

"Rahul Chatterjee" <> a écrit dans le message de
news:...
> Hello All
>
> I have 2 websites both using different style sheets (.css). The

stylesheets
> are stored in a session variable and get set at the time the site gets
> invoked. What is happening is something like this.
>
> I bring up the first site and navigate around. Everything is okay. The
> stylesheets are correct and so on and so forth. When I click on a link to

go
> to the other site from the first site (I create a new instance of the
> browser), that site comes up fine too, but the stylesheet of my first site
> is reset to the stylesheet of the new site that I just opened.
>
> Both these sites are mirror images of each other - i.e. they share the

same
> variables and represent similar information.
>
> Is there any way to separate the session variables so that they dont

clobber
> each other.
>
> Thanks
>
>



 
Reply With Quote
 
 
 
 
Rahul Chatterjee
Guest
Posts: n/a
 
      08-02-2005
The web site is the same but for different clients, they do different
things - for example client A I could be displaying their HealthCare info
and for Client B I could be accepting data. The general look and feel of the
website is the same and they all work of common pages. When each client
enters the website through their own url, they get redirected to a common
page which deciphers who the client is and then opens up appropriate pages
for them and sets the appropriate stylesheets for them. The values of the
stylesheets are set in session variables.

Shouldnt the sessionIDs be different if we open up the sites in separate
instances of browsers? How could one sessionID be the same as the other if
the browsers are different? How would you check the sessionID? Is it just
response.write .......Excuse my questions but I am a relative newbie to
this.. COuld you explain this to me a little more elaborately

Thanks



"Patrice" <> wrote in message
news:...
> Is this two web applications ? If yes, they shouldn't share the session
> variables. For a start you could try to see which sessionid you have on

both
> sites...
>
> --
> Patrice
>
> "Rahul Chatterjee" <> a écrit dans le message de
> news:...
> > Hello All
> >
> > I have 2 websites both using different style sheets (.css). The

> stylesheets
> > are stored in a session variable and get set at the time the site gets
> > invoked. What is happening is something like this.
> >
> > I bring up the first site and navigate around. Everything is okay. The
> > stylesheets are correct and so on and so forth. When I click on a link

to
> go
> > to the other site from the first site (I create a new instance of the
> > browser), that site comes up fine too, but the stylesheet of my first

site
> > is reset to the stylesheet of the new site that I just opened.
> >
> > Both these sites are mirror images of each other - i.e. they share the

> same
> > variables and represent similar information.
> >
> > Is there any way to separate the session variables so that they dont

> clobber
> > each other.
> >
> > Thanks
> >
> >

>
>



 
Reply With Quote
 
Rahul Chatterjee
Guest
Posts: n/a
 
      08-02-2005
I just found out that when I open the link from within the first session,
the browser retains the first sessionID . If I open a new browser and
explicitly type in the URL, a new session ID is generated. In the first
method, I open the link using target="new"

Is there a way to create a new sessionID in the former manner

thanks
"Patrice" <> wrote in message
news:...
> Is this two web applications ? If yes, they shouldn't share the session
> variables. For a start you could try to see which sessionid you have on

both
> sites...
>
> --
> Patrice
>
> "Rahul Chatterjee" <> a écrit dans le message de
> news:...
> > Hello All
> >
> > I have 2 websites both using different style sheets (.css). The

> stylesheets
> > are stored in a session variable and get set at the time the site gets
> > invoked. What is happening is something like this.
> >
> > I bring up the first site and navigate around. Everything is okay. The
> > stylesheets are correct and so on and so forth. When I click on a link

to
> go
> > to the other site from the first site (I create a new instance of the
> > browser), that site comes up fine too, but the stylesheet of my first

site
> > is reset to the stylesheet of the new site that I just opened.
> >
> > Both these sites are mirror images of each other - i.e. they share the

> same
> > variables and represent similar information.
> >
> > Is there any way to separate the session variables so that they dont

> clobber
> > each other.
> >
> > Thanks
> >
> >

>
>



 
Reply With Quote
 
Mark Schupp
Guest
Posts: n/a
 
      08-02-2005
If the page you are jumping to is in the same application then there will be
only one session. You need to have 2 applications. You should be able to do
this by mapping 2 virtual directories to a single physical directory. Then
jump between virtual directories to have separate sessions.



--
--Mark Schupp


"Rahul Chatterjee" <> wrote in message
news:...
>I just found out that when I open the link from within the first session,
> the browser retains the first sessionID . If I open a new browser and
> explicitly type in the URL, a new session ID is generated. In the first
> method, I open the link using target="new"
>
> Is there a way to create a new sessionID in the former manner
>
> thanks
> "Patrice" <> wrote in message
> news:...
>> Is this two web applications ? If yes, they shouldn't share the session
>> variables. For a start you could try to see which sessionid you have on

> both
>> sites...
>>
>> --
>> Patrice
>>
>> "Rahul Chatterjee" <> a écrit dans le message de
>> news:...
>> > Hello All
>> >
>> > I have 2 websites both using different style sheets (.css). The

>> stylesheets
>> > are stored in a session variable and get set at the time the site gets
>> > invoked. What is happening is something like this.
>> >
>> > I bring up the first site and navigate around. Everything is okay. The
>> > stylesheets are correct and so on and so forth. When I click on a link

> to
>> go
>> > to the other site from the first site (I create a new instance of the
>> > browser), that site comes up fine too, but the stylesheet of my first

> site
>> > is reset to the stylesheet of the new site that I just opened.
>> >
>> > Both these sites are mirror images of each other - i.e. they share the

>> same
>> > variables and represent similar information.
>> >
>> > Is there any way to separate the session variables so that they dont

>> clobber
>> > each other.
>> >
>> > Thanks
>> >
>> >

>>
>>

>
>



 
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
Session data overwritten when using two browser instances (CTR+N) Arnt O. Kvannefoss ASP .Net 6 04-08-2005 09:17 AM
Variables are overwritten when another person logs in Remco Groot Beumer ASP .Net Web Services 2 11-05-2003 06:44 PM
Variables are overwritten when another person logs in Remco Groot Beumer ASP .Net Web Controls 2 11-05-2003 06:44 PM
Variables are overwritten when another person logs in Remco Groot Beumer ASP .Net Building Controls 2 11-05-2003 06:44 PM
Variables are overwritten when another person logs in Remco Groot Beumer ASP .Net 2 11-05-2003 06:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57