+ Reply to Thread
Results 1 to 5 of 5

Thread: Simple PHP question

  1. #1
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Question Simple PHP question

    I've been working on all this encryption, hashing, and salting but I just noticed that the password is in a $_SESSION in plaintext. Just how safe is this? Should I use some AES-256 so I can retrieve the data or is it fine the way it is?

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Simple PHP question

    Other than inside your own script, $_SESSION is only viewable by someone who has access to /tmp/ on the server, aka, just the admins. It should be quite safe.
    Last edited by garrettroyce; 06-30-2009 at 09:59 PM.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Re: Simple PHP question

    Thank for the quick response. I thought is was something like that but just making sure because what use is the use of all the encryption if $_SESSION worked like a cookie?

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Simple PHP question

    It's definitely a good way to think

    There is a cookie saved to the user's computer, but it contains no session information, just the session ID.

    You can create your own session handler class if you need the utmost security, but it will require a lot of time and programming.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  5. #5
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Re: Simple PHP question

    All I have is time right now and my utmost interest is security so I'll look into it. Thanks.

+ Reply to Thread

Similar Threads

  1. [PHP] Basics of PHP Scripting
    By jeeter in forum Tutorials
    Replies: 21
    Last Post: 02-03-2010, 04:29 PM
  2. Simple PHP Email Sending Form
    By dquigley in forum Programming Help
    Replies: 10
    Last Post: 12-13-2008, 02:33 PM
  3. Question about PHP memory limit
    By IonCannon218 in forum Free Hosting
    Replies: 1
    Last Post: 06-27-2008, 03:43 PM
  4. A simple PHP query..
    By manuraj.dhanda in forum Programming Help
    Replies: 10
    Last Post: 06-04-2008, 03:43 AM
  5. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers