PHP Classes

can you place and example how to use it

Recommend this page to a friend!

      Simple Session (PDO / MySQL)  >  All threads  >  can you place and example how to use it  >  (Un) Subscribe thread alerts  
Subject:can you place and example how to use it
Summary:how to call this class on other page once session is created
Messages:2
Author:anant salgaonkar
Date:2012-09-06 06:41:25
Update:2012-09-06 07:13:11
 

  1. can you place and example how to use it   Reply   Report abuse  
Picture of anant salgaonkar anant salgaonkar - 2012-09-06 06:41:25
I have implemented it but when by instantiating new session class
then i have added some session variables even those session variables get added to database.

But when i try to access it on other page in chrome
by again instantiating SEssion class on newly opened page and try 2 check if session variable is set or not

it shows not set

Where else in firefox sometimes it recognizes id and returns true

I am trying to implement LOGIN and LOGOUT using session can you give some demo example

and how shd I destroy session.

Please revert back soon

  2. Re: can you place and example how to use it   Reply   Report abuse  
Picture of anant salgaonkar anant salgaonkar - 2012-09-06 07:13:11 - In reply to message 1 from anant salgaonkar
I dont know but this code is only working on FIREFOX and SAFARI.

IF we recreate session in INTERNET BROWSER or CHROME it recreates new id when session is called on second page. This results in new session in database and black data