Hi
I ve checked that value before inserting but it is overwritten by the second one.
Sanjeev/Neeraj
--
On Tue, 31 Aug 1999 16:42:24 Cezar Totth wrote:
>Hi
>Why dont you just check your "var" value isnt already there, before
>putting it?
>Cezar
>
>On Tue, 31 Aug 1999, sanjeev kumar wrote:
>
>> Hi to all
>>
>> we are facing this problem :
>>
>> first I am explaining what we have done !!!!
>>
>> we are storing some value in session whenever a particular servlet is called (this
>is the first one)
>> session.putValue("var", abcd );
>>
>> but when I try to get this value somewhere else it fetches the overwritten value
>with new one !!!
>> (when above servlet is called second time from same machine )
>> this happens when more than one window is open on same machine !!!!!
>>
>> can anybody help me !!!!!!!!!!!!!!
>>
>> its urgent!!!!!!!!!
>>
>> sanjeev
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> >- Use URL rewriting for session tracking - so each browser window will
>> > inherit its own session ID.
>> >or:
>> >- Open multiple browsers processes, by running multiple browser
>> > binaries. (not by menu File->New Browser, or right-click-on-link->
>> > open in new window means).
>> > Multiple browser processes should not share session cookies anymore.
>> > However with MS-IE, users need to set some IE property that force it to
>> > create a new browser process each time IE is launched, instead of re-using
>> > an already running IE process.... That's confusing too.
>> >
>> >Avoid using "instance" in this context, it is very ambiguous -
>> >some might think at browser process, others to broser window, or
>> >session instance, or servlet instance, or any Java object instantiated
>> >with new()
>> >
>> >Cezar
>> >On Tue, 31 Aug 1999, Neeraj Arora wrote:
>> >
>> >> Hi to all,
>> >>
>> >> I am facing one problem that when I open multiple instances(in different browser
>windows)
>> >> of my site same session Id is given to all different instances.
>> >> Even I tried to use synchronization for
>> >>
>> >> request.getSession(true);
>> >>
>> >> but still its giving the same id.This
>poses a problem doing
>> >> user specific tasks.
>> >>
>> >> Neeraj
>> >>
>> >>
>> >> Get your FREE Email at http://mailcity.lycos.com
>> >> Get your PERSONALIZED START PAGE at http://my.lycos.com
>> >>
>> >> ___________________________________________________________________________
>> >> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>> >> of the message "signoff SERVLET-INTEREST".
>> >>
>> >> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> >> Resources: http://java.sun.com/products/servlet/external-resources.html
>> >> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >>
>> >
>> >___________________________________________________________________________
>> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>> >of the message "signoff SERVLET-INTEREST".
>> >
>> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> >Resources: http://java.sun.com/products/servlet/external-resources.html
>> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >
>>
>>
>> Get your FREE Email at http://mailcity.lycos.com
>> Get your PERSONALIZED START PAGE at http://my.lycos.com
>>
>> ___________________________________________________________________________
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://my.lycos.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html