Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Retrieving a session variable

Quote Reply
Retrieving a session variable
Is it posssible to retreive a php $_SESSION['string'] from within a cgi script? If so, how?

I have a php script that starts a session and saves a password...
Code:
session_start();
$_SESSION['string'] = $password;
Then during a form submission, it retrieves the password and compares it to what was entered...
Code:
session_start();
$string = strtoupper($_SESSION['string']);
$userstring = strtoupper($_POST['userstring']);
session_destroy();

if ($string == $userstring) {
success();
exit();
} else {
failure();
exit();
}

I would LIKE to do the session setting using php, and
just need to retrieve it's value from a cgi file (plugin).

If not, Can I (via php) save the session to LSQL session tables ???
So I can retrieve it from there from within a plugin?

Thanks for any assistance.
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Subject Author Views Date
Thread Retrieving a session variable rgbworld 2423 Jul 13, 2006, 10:54 PM
Thread Re: [rgbworld] Retrieving a session variable
ryel01 2329 Jul 14, 2006, 2:00 AM
Post Re: [ryel01] Retrieving a session variable
rgbworld 2313 Jul 14, 2006, 4:45 AM