Search Help Board

PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help

C# Help

Date:???10-18-03 00:36

I got 2 questions about sessions.

1. Is it possible to change the session expire time with session_cache_expire? I have tried it, but it don't work! Is there any other solutions to destroy the sessions afer 15 minuts?

2. I have a login script, where the username and the crypted password are stored in a session. I use a function like this to check if the user is logged in:

if($_SESSION['user'] == "User" and $_SESSION['pass'] == "Pass"){
echo "Okay"
include "login.php";

The values are checked with a mysql database, this is just an example.

But when I use the function session_start(); it creates a blank session, not that it is a big problem - but are there any way to check if a session is created, and then run the session_start() if it is?


?Re: session
Date:???10-18-03 08:45

set the session_cache_limiter before starting the session

see http://ca3.php.net/manual/en/function.session-cache-expire.php


Go to Top??|??Go to Topic??|??Threaded View??|??Search?
New Topic
?Reply To This Message
?Your Name:
?Your Email:
Email replies to this thread, to the address above.

Provided By