CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 How to set UserID and GroupID Session Variables

Print topic Send  topic

Author Message
sarrivillaga


Posts: 10
Posted: 02/05/2008, 8:23 AM

Hello,

I am developing a different User validation method, but I have tried with the following lines to set the value for session varialbles "UserId" and "GroupID"

e.getPage().getRequest().getSession().setAttribute("UserID","UserX");
e.getPage().getRequest().getSession().setAttribute("UserLogin","UserLoginX"));
e.getPage().getRequest().getSession().setAttribute("GroupID","Admin");

But it seems that is not working, Do yo know how to set those variables?

Thanks for your help.
View profile  Send private message
mrachow


Posts: 509
Posted: 02/05/2008, 12:28 PM

It's a while since I had done Java with Studio but I had used
SessionStorage.getInstance(e.getPage().getRequest()).setAttribute("WebControllingBasis", "1");
for setting my own session variables.
Maybe setting "UserID" will work too.
_________________
Best regards,
Michael
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.