PHP Classes

Not run

Recommend this page to a friend!

      Session Store  >  All threads  >  Not run  >  (Un) Subscribe thread alerts  
Subject:Not run
Summary:Not run
Messages:5
Author:BratSadLove
Date:2015-06-27 03:09:36
 

  1. Not run   Reply   Report abuse  
Picture of BratSadLove BratSadLove - 2015-06-27 03:09:36
Not run, please check !

  2. Re: Not run   Reply   Report abuse  
Picture of Anthony Amolochitis Anthony Amolochitis - 2015-06-27 18:09:47 - In reply to message 1 from BratSadLove
Make sure to start your session first. Then it will work.

Otherwise, please paste the errors you get into this thread.

I currently use this class and it works.

  3. Re: Not run   Reply   Report abuse  
Picture of Henrique Tschannerl Henrique Tschannerl - 2015-11-13 12:58:59 - In reply to message 2 from Anthony Amolochitis
Hello,

For me doesn't work too.
I use the example.php and create a new php file with this code trying to get the data:
<?php

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
require "SessionDataStore.php";

$DataArray = SessionDataStore::GetData() ;

The code to get the data don't return any data stored before from example.php.

  4. Re: Not run   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-11-16 04:22:52 - In reply to message 2 from Anthony Amolochitis
@Anthony

One thing you may consider is adding a check for a valid session to each static method and if not found, go ahead and start a session.

Dave

  5. Re: Not run   Reply   Report abuse  
Picture of Anthony Amolochitis Anthony Amolochitis - 2015-11-16 14:16:59 - In reply to message 4 from Dave Smith
I believe that is a good idea. I was under the assumption a programmer would know to create a session before using session storage, but I was mistaken. Thanks Dave.