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 8021717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:04:08+00:00 2026-06-04T22:04:08+00:00

I Am using a session on a website and I am unable to take

  • 0

I Am using a session on a website and I am unable to take the data on the other page. I have used the code on other host and its working fine on other host so I think that the host problem.

The code I used to save the session is:

session_start();

$_SESSION["std_id"] = 'rst';

echo "<pre>";
print_r($_SESSION);
echo "</pre>";

And I am retrieving it on the other page with this code:

session_start();
echo "<pre>";
print_r($_SESSION);
echo "</pre>";

As I said its working fine on other host as well as on localhost, so that is the server issue, but I need to keep the login info of the user as we use to maintain login record through session.

We have installed Joomla on that site and its working fine its maintaining all the login info and every thing.

Can anyone suggest me the solution other than changing the host 🙂
Thanks.

Edited:
I can’t show the host name as due to some reason.
The domain I am using is a sub-domain for a University department and the main site is of University site, and I am using this code under a new folder at sub domain.

  • 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-04T22:04:10+00:00Added an answer on June 4, 2026 at 10:04 pm

    do you get any errors in your error log or in php error reporting (error_reporting)?
    like "No session exists - writing to test_value"

    you can also test your current session directory if its writeable:

    $writeable = is_writable(ini_get("session.save_path"));
    

    one solution is to change your session directory with this:
    (create the /tmp directory by hand in your root)

    ini_set("session.save_path","/tmp");
    

    or to your .htaccess

    php_value session.save_path /tmp
    

    and give 0777 permission in that /tmp directory, which must be in your root.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using SESSION Variables to enter data with loginName as way to
I have a question about using session, or maybe TempData to store data while
I have a CakePHP website with its own login system using the Auth component.
I'm having some troubles using Session Variables as they are being used as Reference
I have a site on my localhost that i am using session variables on.
Is it possible to have secure authentication without using session, cookies and SSL ?
I am struggling to keep the Facebook session alive using PHP on my website.
I am currently doing a website in php, we are using a Session variable
I have a .Net 3.5 website which uses windows authentication and expires the session
I only want the session cookie on www.website.tld and www.apps.website.tld, using ini_set if possible.

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.