Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:54:00+00:00 2026-06-10T02:54:00+00:00

Since the default /tmp is usually open to all accounts in a shared host

  • 0

Since the default /tmp is usually open to all accounts in a shared host it’s generally advised to use session.save_path and set a different location.

Is it assumed that a better location is in /home/username/example_session_tmp/ as long as it’s not in /home/username/public_html/?

If so, wouldn’t that still be vulnerable in case a hacker were able to inject a script in public_html and read ../example_session_tmp/? Or is it the only way and it’s generally assumed your site is secured from script injections?

Note: Database session handler is an alternative option but let’s assume it’s not possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:54:01+00:00Added an answer on June 10, 2026 at 2:54 am

    If a hacker gets a script into your site, there isn’t a lot you can do to stop him from snagging sessions. If your webserver has access to the sessions then that user will. No matter where you stick it the hacker can find with with a simple call to session_save_path.

    To sum up:

    • Prevent hackers from getting access. Who cares about sessions if your server is wide open? Secure this first.
    • Setting the save_path to ~/sessions should prevent other shared hosting users tampering with your sessions. This does not prevent someone who gains access to your webserver from seeing and tampering with sessions.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since WAS 8.5 is by default shipped with IBM JDK6, I have installed IBM
Since recent update Xcode 4.3 now seems to default to LLDB debugger. I just
Since iOS 5.1 was released, the default for showing the Master view controller in
I know the default Java heap memory is 128 MB. Since it is the
We're running our default website in a .Net 2.0 app pool. We've since created
I would like to skin a wpf default checkbox to something custom. Since it
Since the default implementation of CacheManager doesn't provide GetItemsOfType<> (and many others) I thought
I have a big problem with my server mysql. All worked fine but since
I have this problem in regards with default, since I m not sure whether
Currently I'm using shared webhost (Linux) to host my site. I know that anything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.