Phanikanth
Posts: 7
|
| Posted: 08/27/2004, 10:12 PM |
|
Hi
I did a website with one login page and one main page and many subpages with links on the main page. the idea is the user should be able to access the pages only if the user has logged in.If user tries to open any of the pages directly via the webbrowser they should be redirected to the login page and once they login they should be allowed to access the site freely till they logout or close browser.
Now after the pages i have the following problem!!
if a user logs in via login page, the user is able to access the main page. but when the user clicks on the subpage link then he is restricted to the login page again . Also if the user logs in again he gets access to the sublink page. but on the sublink page there is a link to the main page and if the user clicks on the link he asked to login again  
Any Help here is sure appreciated.
using php/ccs2.3/mysql5.0 linux
the redirect is all working fine and login function is also fine only the repeated logins is a headache.
Thanks
|
 |
 |
Phanikanth
Posts: 7
|
| Posted: 08/28/2004, 8:25 PM |
|
Hi
I noticed something by the way. the session variable getting stored in the /tmp directory is storing values only for the login time and then the values are zero when they go to the redirected page. is there any way we can retain them throughout till the user logs out
thanks in advance
|
 |
 |
Damian
|
| Posted: 08/29/2004, 5:18 AM |
|
Have you set the same security level for every page?
"Phanikanth" <Phanikanth@forum.codecharge> wrote in message
news:541314ca4e3f38@news.codecharge.com...
> Hi
> I noticed something by the way. the session variable getting stored in the
/tmp
> directory is storing values only for the login time and then the values
are
> zero when they go to the redirected page. is there any way we can retain
them
> throughout till the user logs out
>
> thanks in advance
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
DonB
|
| Posted: 08/29/2004, 6:11 AM |
|
My guess is it's your server configuration. What is the session timeout
defined to be - a few minutes or a few seconds?
--
DonB
http://www.gotodon.com/ccbth
"Phanikanth" <Phanikanth@forum.codecharge> wrote in message
news:541314ca4e3f38@news.codecharge.com...
> Hi
> I noticed something by the way. the session variable getting stored in the
/tmp
> directory is storing values only for the login time and then the values
are
> zero when they go to the redirected page. is there any way we can retain
them
> throughout till the user logs out
>
> thanks in advance
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Phanikanth
Posts: 7
|
| Posted: 08/29/2004, 9:56 AM |
|
Yes same level for all pages
Quote Damian:
Have you set the same security level for every page?
"Phanikanth" < Phanikanth@forum.codecharge> wrote in message
news:541314ca4e3f38@news.codecharge.com...
> Hi
> I noticed something by the way. the session variable getting stored in the
/tmp
> directory is storing values only for the login time and then the values
are
> zero when they go to the redirected page. is there any way we can retain
them
> throughout till the user logs out
>
> thanks in advance
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
 |
 |
Phanikanth
Posts: 7
|
| Posted: 08/29/2004, 9:57 AM |
|
I set session.cookie_lifetime = 0 in php.ini if that is what you ask for??
Quote DonB:
My guess is it's your server configuration. What is the session timeout
defined to be - a few minutes or a few seconds?
--
DonB
http://www.gotodon.com/ccbth
"Phanikanth" < Phanikanth@forum.codecharge> wrote in message
news:541314ca4e3f38@news.codecharge.com...
> Hi
> I noticed something by the way. the session variable getting stored in the
/tmp
> directory is storing values only for the login time and then the values
are
> zero when they go to the redirected page. is there any way we can retain
them
> throughout till the user logs out
>
> thanks in advance
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
 |
 |
Phanikanth
Posts: 7
|
| Posted: 08/29/2004, 9:58 AM |
|
Also FYI
session.cache_expire = 180
|
 |
 |
Deborah
|
| Posted: 09/21/2004, 8:47 PM |
|
I am having exactly the same problem of the login not persisting. What was the solution? Was it the php.ini file?
|
|
|
 |
Sarah
|
| Posted: 09/22/2004, 4:40 PM |
|
I have the same problem. Any solutions?
|
|
|
 |
Deborah
|
| Posted: 09/24/2004, 4:43 AM |
|
I've been going back and forth with support on this for a week, with no solution yet. I'll post something when I figure out the problem.
Deborah
|
|
|
 |
Nader
|
| Posted: 02/05/2005, 11:15 PM |
|
Any solution to this problem?
|
|
|
 |
Nicole
Posts: 586
|
| Posted: 02/07/2005, 1:33 AM |
|
Hello,
There are some issues with running PHP as an ISAPI module on IIS as it is not completely stable. One of such issues is the lack of REQUEST_URI variable that is used by CCS generated code.
Try installing PHP on the server in CGI mode. Also when running PHP as CGI you can use
$_ENV["REQUEST_URI"] instead of $_SERVER["REQUEST_URI"]
_________________
Regards,
Nicole |
 |
 |
PeterJ
Posts: 90
|
| Posted: 02/07/2005, 10:08 AM |
|
I experienced this problem about 18 months ago. The solution for me was to alter the php.ini file but if, as I was, hosting the site on a remote shared server, I had no control over the configuration of the php.ini so I opted for placing the files in different folders and controlling levels of access with .htaccess. Frustrating but I had no choice at the end of the day because users were timed out when they went to search for information to enter. Time-out was between 2-5 minutes and as a consequence they lost their data. This was PHP4x, Apache on Linux.
|
 |
 |