6 thoughts on “Protecting Multiple Files with Secure Sessions

  1. This is awesome. Thank you. I have got this working and it will do just what I wanted I think. Is there a way to store the destination URL the user was trying to reach so that you can deliver them there once the login sequence is done?

  2. Do you know how can I protect a private key (to decrypt database content) stored in a session variable?

    See, my problem is I’m using asymetric encryption. The private key to read de data is safely stored in the user database symetrically encrypted with AES under the user’s password.

    So when the user wants to read something he just logs in and gets the private key with his pass, stored under a php session var for further use.

    Anybody who has access to this session var can retrieve the private key and steal al the cyphered content from the database file.

    Any ideas?

  3. How about a logout function?
    I dont even know if thats needed from a technical point of view, but it would certainly add to design :)

  4. Hi, one thing I always wondering about is the question, how I can let the user set up his own password. and how I can protect the input form

    Username:

    Password:

    from sending the unhashed password via the web to the server.

    Do I have to hash it via javacript before sending it or du I have to use a https connection with a certificate to provide a secure password transmission?

    Does anybody know an answer to this?

    Greetings and thanks in advance!
    Uwe

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>