Hi All,

My session class has stopped working and I have no clue why.  I
haven't touched the code in weeks.  I have a session class (copied
from the  book Professional PHP5) that returns an object of that class
and has an Impress() method that touches a database table and stores
session info.

At the beginning of each php file, I have these two lines:
$objSes = new MySessionClass();
$objSes->Impress();

As I said, this code was working perfectly and for weeks and hasn't
been modified.  However, now every time I open a new php file and
execute the $objSes = new MySessionClass(), I'm apparently starting a
new session.  It is not returning an object of the previous session
info.  Of course, this is causing everything to crap out.

How can I create an $objSes instance which is visible globally to all
php files but not to other users of the application?  Would the global
keyword do this or would that also make it visible to other users?

Thanks,
Steve





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to