By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,723 Members | 1,876 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,723 IT Pros & Developers. It's quick & easy.

make $_SESSION[] global

P: n/a
Hi every one
I have project I need to make the value of $_SESSION[] available for
function in another php file
can any one help me to fix my problem
I will be thank full

Best
Salim
Feb 16 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
..oO(sahm)
>I have project I need to make the value of $_SESSION[] available for
function in another php file
can any one help me to fix my problem
$_SESSION is a superglobal array, it's available from within any
function in any script. Just make sure that you call session_start() at
the very beginning of _every_ page to open the session. After that you
can simply access the data.

Micha
Feb 16 '08 #2

P: n/a
On Feb 16, 7:24 pm, Michael Fesser <neti...@gmx.dewrote:
.oO(sahm)
I have project I need to make the value of $_SESSION[] available for
function in another php file
can any one help me to fix my problem

$_SESSION is a superglobal array, it's available from within any
function in any script. Just make sure that you call session_start() at
the very beginning of _every_ page to open the session. After that you
can simply access the data.

Micha
Dear Micha
Thank you for your help
Best Salim
Feb 16 '08 #3

P: n/a
..oO(sahm)
>Dear Micha
Thank you for your help
Best Salim
You're welcome.

Micha
Feb 16 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.