Reply
return session variables from a function
Old 05-02-2008, 11:32 AM return session variables from a function
Novice Talker

Posts: 10
hi,

i have written a function that reads all the images in a given directory, and then would like to store each image name in a session variable as an array that is then returned outside the function, so that elsewhere the session variable can later be called upon again for use.

i have had no problems with the script reading the images in the directory and storing them in a session variable, however i am having problems in returning the session variable and as an array back to outside the function so it can be used elsewhere.

Any ideas anyone?

Thanks
gavrd1 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-02-2008, 08:27 PM Re: return session variables from a function
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 829
Name: Jeremy Miller
Location: Reno, NV
$_SESSION is a superglobal -- you don't need to return it from the array.
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-05-2008, 04:13 AM Re: return session variables from a function
Novice Talker

Posts: 10
problem solved, many thanks!
gavrd1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to return session variables from a function
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11258 seconds with 13 queries