1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Rep Power

    I would be grateful of any clarification on this.

    I am looking at the posibility of using session management in my site. I was wondering whether someone could clearly define what can and can't be done with sessions. I have managed to pass everything apart from database resource ids and class objects.

    My question is, Is this possible and if so how?

    I would also be interested on peoples views on PHP Session management, whether it is worth while incorporating it into your site.

    Thanks for any help.

  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Niagara Falls (On the wrong side of the gorge)
    Rep Power
    I rolled my own session management in the days before PHP4 and probably still will since I'm comfortable with it.

    Worth it depends on what you are doing. If you need it, you need it; if you don't. you don't.

    At this point you can only pass object properties thru serialization, not methods.

    You cannot pass a database result id, because the memory that the result index points to is owned by the process that performed the query, which dies when the script exits.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Rep Power
    I have a problem, not the same as yours though,

    I use php4 on PWS NT workstation.

    I use the basic session example in the php docs, the e-commerce tut on devshed and the origional example from devshed(couch sessions) and no luck.

    I get a page, yet when I view source - nothing after the body tag?

    any suggestions?

    ciao & thanks

Similar Threads

  1. start session with existing session id?
    By marco-marco in forum PHP Development
    Replies: 1
    Last Post: February 16th, 2004, 06:05 AM
  2. CGI::Session Question
    By malik_iqbal in forum Perl Programming
    Replies: 0
    Last Post: January 15th, 2004, 09:19 AM
  3. separating session from each browser
    By bulletz in forum ASP Programming
    Replies: 1
    Last Post: December 31st, 2003, 03:14 AM
  4. Weblogic-Apache plugin session is not sticky
    By icecool in forum Apache Development
    Replies: 0
    Last Post: December 13th, 2003, 06:59 PM
  5. Php session
    By toofe in forum PHP Development
    Replies: 1
    Last Post: December 13th, 2003, 10:59 AM

IMN logo majestic logo threadwatch logo seochat tools logo