In that case the scope of the variable is only to that particular session. If 
some one else logins and the same action is getting called then the data will 
be available in a separate session. If there is a concurrent access then you 
need to check how you are creating the session object also. very first time you 
need to create the session object by passing the "true" parameter and in all 
other cases you need to fallow "false".

________________________________

From: ??? [mailto:[EMAIL PROTECTED]
Sent: Mon 10/3/2005 2:13 PM
To: Struts Users Mailing List
Subject: Re: Is session.setAttribute unique for all sessions?



well, I just make use of  session.setAttribute(),
How will it become global variable?



2005/10/3, Murugesan, Kathiresan (Cognizant)
<[EMAIL PROTECTED]>:
>
> it won't share until you have "userPrivileges" as global variable in your 
> action class.
>
> Regards
> Kathir.
>
> ________________________________
>
> From: ??? [mailto:[EMAIL PROTECTED]
> Sent: Mon 10/3/2005 1:32 PM
> To: Struts Users Mailing List
> Subject: Is session.setAttribute unique for all sessions?
>
>
>
> In an Action, an attribute is set by
> session.setAttribute("Privileges", userPrivileges);
>
> If another session logins and the same Action is called again,
> will the two sessions share the same attribute?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> This e-mail and any files transmitted with it are for the sole use of the 
> intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply 
> e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
> or copying of this email or any action taken in reliance on this e-mail is 
> strictly
> prohibited and may be unlawful.
>
>  Visit us at http://www.cognizant.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

Reply via email to