★ wanayoo — archive 1999 http://www.php.net/manual/function.session-encode.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Sessions
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Sessions
* session_start
* session_destroy
* session_name
* session_module_name
* session_save_path
* session_id
* session_register
* session_unregister
* session_unset
* session_is_registered
* session_get_cookie_params
* session_set_cookie_params
* session_decode
* session_encode
Manual: session_encode
View the source code for this pageSearch the site



Previous page
 session_decode
 Updated
Sat, 12 Aug 2000
SWF 
Next page


session_encode

(PHP4 )

session_encode --  Encodes the current session data as a string

Description

bool session_encode(void);

session_encode() returns a string with the contents of the current session encoded within.

Note: This function was added in PHP 4.0.


User Contributed Notes: session_encode


tojo@perceptive.se
05-Nov-1999 04:58
i dont quite follow, is this some sort of cryptating thing? why would i want to use this, please explain.


mlevine@netwhirl.com
13-Nov-1999 02:24
If you'd like to store a users session in say..a database, to be retreived later..this function will return a text string that contains all the variables from that session, and the variables can be retreived later by plugging the string into session_decode()


cparrish@computerprep.com
24-Nov-1999 03:50
This is very handy if say you have have to include a SID in the url string


fran0382@tc.umn.edu
28-Jan-2000 02:07
Shouldn't this be:
<pre>
string session_encode(void);
</pre>

After all, it does return a string, not a boolean.



mahaharami@hotmail.com
17-Mar-2000 01:32
I quite agree.. it shud be string rather than bool. I can't seem to find a way to use it. Is it $x=session_encode() or is it simply session_encode()


dhartford@ghsinc.com
04-Jul-2000 04:58
If PHP is run on the server-side, how much use is session_encode or session_decode except to keep server-side variables in the URL string? Passing variables to the server through a web-form and then encoding them is pretty useless. I like cparrish's idea about encoding SID's, but otherwise I'm at a lost.


fheckel@xperts.com
26-Jul-2000 05:42
Perhaps for passing session information between servers, ie, User starts a session on ServerA, but ServerA sends User to ServerB for some reason or another, but Coder wants the session info to be carried between, so he uses session_encode to pass the session info on to ServerB through the URL...

Does that sound right?



 About Notes


Previous page
 session_decode
 Updated
Sat, 12 Aug 2000
SWF 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.