Jul 26, 2008

Quick Question About Session Vars - something I can't find anywhere

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Quick Question About Session Vars - something I can't find anywhere

timstokman
Can you save stuff like classes and arrays in sessionsvariables?

Reply

LuciferStar
QUOTE(timstokman @ Dec 31 2004, 08:10 PM)
Can you save stuff like classes and arrays in sessionsvariables?
*


I don't know,either.
but,here's the information:
session_register
(PHP 4 )

session_register -- Register one or more global variables with the current session
Description
bool session_register ( mixed name [, mixed ...])


session_register() accepts a variable number of arguments, any of which can be either a string holding the name of a variable or an array consisting of variable names or other arrays. For each name, session_register() registers the global variable with that name in the current session.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : session vars

  1. Php Session - (6)
  2. Php-fusion Cms - No session_start() used? (3)
    A while back i was looking for free hosting and a forumn suite for my own comunity. I ended up using
    hostingdirect.co.nz and php-fusion from http://php-fusion.co.uk It was pretty easy to setup and
    run. But my site required more specific functions other then generic CMS could offer and I wanted to
    learn PHP so I start reading tutorials and such to learn. I was working on them locally and they
    seem to run fine on my own server. When i upload my own site to the hostingdirect site I find they
    do not have safe_mode off. I got an error in my index.php file when i try and ru...
  3. Flash + PHP: How can I transfer vars? - (4)
    I am making a little section for a friends website. Here is what I have so far. :SWF File here:
    And I made it you match the layout of here site. Here As you can see I pretty much have the
    layout of it down. Some little bugs to be worked out with characters allowd in the text boxes and
    what not. But I have a good platform. NOW for the fun part! Getting vars from flash to send,
    via POST, to PHP. I have been trying to find a good tutorial on this online but I am not having such
    great outcomes! So if anyone can help me here please go for it! This is ...
  4. Compare Two Vars And Highlight The Differences - (7)
    I need a script that compares 2 variables, and looks for a difference between them. It will then
    highlight the words that are different, as shown in the image below: So in the left cell, the
    yellow text is the text that has been removed OR replaced. In the right cell, the green text is the
    text that has replaced some text in the left cell, OR new text. This script will be used to
    compare 2 versions of a document stored in the database, to see the difference between each change
    (all revisions are stored in the database). I know that it's possible with PHP, beca...
  5. Storing Session Variables Generated Dynamically - (3)
    i have many pool (quiz) modules on my site with the information taken from a database. The modules
    are processed by the same function with different parameters and i need to save the pool's
    status to prevent a user vote several times. I do this setting $_SESSION to 1 , variable
    being the name of the quiz, which is taken from the database. So i get to having a code like this:
    .................... $name= $row->quiz_name; $_SESSION =1 The problem is that if
    i call $_SESSION from another part of the site (another page) the variable is al...
  6. Php - Can Anyone Tell Me What "session" Actually Do? - (5)
    php - can anyone tell me what "session" actually do? I was looking at this page
    http://www.w3schools.com/php/php_sessions.asp this paragraph here: A PHP session solves this
    problem by allowing you to store user information on the server for later use (i.e. username,
    shopping items, etc). However, session information is temporary and will be deleted after the user
    has left the website. If you need a permanent storage you may want to store the data in a database.
    Especially this part below: QUOTE A PHP session solves this problem by allowing you to store
    user in...
  7. Session Variables - Sessions in PHP behaving strangely (4)
    Hi. I am part of a development team working in PHP and MySQL. The site is using SSL, and users
    have to log to use the site. When users log in, their important details are retrieved from the
    database and stored in session variables (functionality in the site is permissions specific).
    Lately, sessions are "disappearing" for no apparent reason. Users will log in, and at some point
    (the length of time will vary unpredicatably) the sessions will lose their value (the variables are
    empty) and this causes the site to evict the user. This is very frustrating for the user b...
  8. Problem With $http_post_vars - (3)
    I have a piece of code on one server that works and the same piece of code on another server does
    not. The difference is in the PHP verison & the Linux verison The one that works runs PHP4 on Redhat
    Linux. The one that doesn't runs PHP5 on SUSE Linux. Not sure if this is where the issue lies or
    not. I do know that in one case I see an adrress in searchable and in the other case it is null.
    PHP Code: CODE if ($HTTP_POST_VARS[addr]) {     $searchable =
    $HTTP_POST_VARS[addr];     echo "searchable = ".var_dump(...
  9. Session Start() Problem - Need help with an error (5)
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started
    at /home/ridouan/public_html/Reviews.php:5) in /home/ridouan/public_html/Reviews.php on line 6
    Can't seem to fix the error (im a php noob) So i'd appreciate some help /smile.gif'
    border='0' style='vertical-align:middle' alt='smile.gif' /> If you need it: Gamer Online then
    click on the Reviews link...



Looking for quick, session, vars

Searching Video's for quick, session, vars
advertisement



Quick Question About Session Vars - something I can't find anywhere



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE