What is a safe location for my sessions?

Discussion in 'PHP' started by Imozeb, Jun 13, 2010.

  1. #1
    I want to set a new save folder for different types of sessions (user, general etc...). How can I do this safetly?

    Thanks.
     
    Imozeb, Jun 13, 2010 IP
  2. Layoutzzz

    Layoutzzz Greenhorn

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    Hi,
    You should use following function:
     
    Layoutzzz, Jun 13, 2010 IP
  3. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    tmp is the best
     
    Scripts man, Jun 13, 2010 IP
  4. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I need to save different types of sessions in different locations so I can count them and access them easily. I need to know a 'safe' location I can make the folders so people can't access the sessions. Also will the sessions still delete themselves when the user leaves since I am not using the tmp folder or do I have to set that or create a function for that?

    Thank you.
     
    Imozeb, Jun 14, 2010 IP
  5. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  6. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Could you just give me a normal php session solution? I need to save the databases for other functions.
     
    Imozeb, Jun 14, 2010 IP
  7. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #7
    Hi Imozeb,

    first off - Why are you looking to change the path? In most situations it is not needed. Granted, there are some and hence why its possible. Without knowing what you are trying to do Im not sure how to help.

    AIUI, you want to save different session locations in different places... but for what reason? If its security, this is more security through obsurity, and can be more effort than its worth. If its for data mining its what logs are for..... you can my drift :)
     
    lukeg32, Jun 14, 2010 IP
  8. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I need to store sessions in seperate folders so that I can quickly count them. It needs to be this way so the sessions I use for user data and the sessions I use for some of my APIs are in different folders then they are easier to count. Also I am using a shared server so I need a new place for security.
     
    Imozeb, Jun 14, 2010 IP
  9. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #9
    I suggest you to go with temporary folder!
    Its Safe
     
    roopajyothi, Jun 15, 2010 IP