Jump to content

Sessions Safety


random1

Recommended Posts

Most any information is "safe" to hold in a session. If it is sensitive, then you should probably destroy the session as soon as it is not needed any longer, but I use sessions to store a credit card and expiration from page to another page... and then destroy it after it is no longer needed.

 

I am not sure what other think on this topic... but I see no real problem with it.

 

Nate

Link to comment
https://forums.phpfreaks.com/topic/132646-sessions-safety/#findComment-689869
Share on other sites

the site is on VPS and I don't "store" them per say.... I use it to get the card number from the "enter billing info page", to the "confirm order page" and once the order goes through I destroy the session and unset that var.

 

Just out of curiosity is there a better way?? I don't store them in a database, but I guess a temp table could be used as a way to avoid sessions for that kind of info.

 

The entire "store" area is on SSL of course.

 

How do you do this sort of thing?

 

Nate

Link to comment
https://forums.phpfreaks.com/topic/132646-sessions-safety/#findComment-689879
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.