PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, June 30, 2022

[FIXED] Why Prestashop doesn't use $_SESSION for session storage?

 June 30, 2022     php, prestashop, prestashop-1.5, session     No comments   

Issue

I noticed that Prestashop 1.5 doesn't use $_SESSION(I'm not sure whether other versions take same approach) anywhere in its core to store session data.

I'm really curious to find out why Prestashop developers decided against $_SESSION, and what was the design concerns that lead to this decision. Does it give considerable improvement in security or performance?


Solution

A session is usually short-lived (20 minutes or so) so they decided to use traditional cookies handled by the Cookie object to manage data stored during the user session. This type of storage is longer living.



Answered By - Jan Potužník
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing