Welcome, Guest. Please Login or Register.
July 19, 2025, 09:11:48 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Use of Php Session object(?) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Use of Php Session object(?)  (Read 367 times)
eteune
Jr. Member
**
Posts: 64


Estoy un tlacuache!

WWW
Use of Php Session object(?)
« on: August 28, 2003, 04:01:43 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.1.2
MySQL Version: 4.0.x
Server Platform: Windows
Link to Forum:

Problem Description:
Does YaBBSE use the PHP session object/variable to store information? And how can I make sure that it does?
I need to be able to utilize the information in a session for other pages on the site outside the forum.

I saw this code posted by [Unknown]
<?php echo $GLOBALS['sc'];?>

<?php echo $GLOBALS['username'];?>

<?php if ($GLOBALS['settings'][7] == 'Administrator') {?>

 admin stuff.
<?php } ?>


-[Unknown]


Does $GLOBALS use the session thingy of PHP?

thanks,

Ed
Logged

...sin otra luz ni guía
sino la que en el corazón ardía.
(San Juan de la Cruz)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Use of Php Session object(?)
« Reply #1 on: August 28, 2003, 07:25:44 PM »
Reply with quote

This is the session id:
<?php echo $GLOBALS['sc'];?>

To access session variables, use:
<?php echo $_SESSION['really_cool'];?>

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Use of Php Session object(?) « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.081 seconds with 21 queries.