lachof
Posts: 14
|
| Posted: 10/23/2008, 2:49 PM |
|
Hello, i need to create several session variables with more data from the db when the user successfuly logs in the application so ther grids "read" this variables and query the db acordingly
Could someone shed some light ?
thnx in advance!
|
 |
 |
Gena
Posts: 591
|
| Posted: 10/23/2008, 3:17 PM |
|
You can use CCS function like
$your_var = get this in some way;
CCSetSession("You_session_Label_nome", $your_var);
_________________
Gena |
 |
 |
lachof
Posts: 14
|
| Posted: 10/23/2008, 3:55 PM |
|
Thnx Gena... I am extremely new on this
In which event should this be done (using the login) ?
OnValidate?
After Select ???
thnx!
|
 |
 |
Gena
Posts: 591
|
| Posted: 10/23/2008, 4:16 PM |
|
If you use standard Login form then you can see that login happened in Login_button - OnClick event: you can see Login action here. So add just Custom code after this event and put here appropriated code you need.
_________________
Gena |
 |
 |
cleyan
Posts: 136
|
| Posted: 10/23/2008, 5:52 PM |
|
remeber to verify successfully logon before asign the session variable
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
 |
 |