Andres Rormoser
|
| Posted: 11/23/2004, 4:29 AM |
|
I have a project where all the security works fine but in one page i have a link to an asp
page outside CCS to display a crystal report. The problem is that when i go back to the
CCS page i get the login page again. How do i preverse the login session?
Thanks in advance, AR
|
|
|
 |
DonB
|
| Posted: 11/23/2004, 6:39 AM |
|
The login info is stored in Session variables. Your session is probably
expiring and the login info then has been lost. Look at the CCLoginUser()
function and CCGetCookie() / CCSetCookie(). You could copy the login info
from the session variables, into cookies, and then the values would stay
around as long as the browser is active. This requires you to call
CCLoginUser() with the user and password saved in your cookies.
CCLoginUser() actually sets session variables so you you COULD do that
yourself, but I recommend that you call the CCS function to minimize
compatibility in the future (should the login operation ever be changed by
Yes).
It would be nice to have the option of cookie vs. session for storing the
login info. In practice, session timeouts are frequently a problem, forcing
users to login again and again. It can also be a problem when you are
editing something for an extended period and click "Submit". It's very
annoying to see the login screen instead of having your data saved to the
database.
--
DonB
http://www.gotodon.com/ccbth
|
|
|
 |
|