Actually the user is only allowed to get to any page if he has logged on. Thus all the remaining pages check to see if a session has been registered, if so then the person is allowed to to go on with his session. If the session did not exist he is redirected to a login page.

Do you still suggest that I should touch all pages. or it will suffice to change only the first page. Also if I were to create a .htaccess file that is kept in the same dir as the application, what do I need to include in that file ?

Thanks
Pushpinder

On Friday, January 23, 2004, at 12:13 PM, John Nichel wrote:

Pushpinder Singh wrote:

Thanks much John,
I have about 8 different pages that are all session linked. Do I have to add this ini_set() at the beginning of all the session_start() calls on all these pages.

You should only have to do it for the first time session_start() is called, but not knowing where a person might enter your site, it would be best to do it for all of them. Another option is to put the ini_set(), session_start(), and anything else which needs to be called/set across multiple pages, in a configuration file, and just require that file in your pages....this way, you only have to make changes in one place.


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to