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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:15:33+00:00 2026-06-04T06:15:33+00:00

I developed one site with session. Its works in Local server and Also in

  • 0

I developed one site with session. Its works in Local server and Also in Production machine. Now they move the site to new server with SSL HTTPs . Here i face one problem .

Session set in one page but not carry over to another page. Same code works in http based server.

I tried the following methods to resolve this but not yet it solved

1) I pass the session id over url and set in another page. Here also SESSION not set.

2) I use this two lines in my php file as some one suggested in some forums

ini_set(“display_errors”,1);
error_reporting(E_ALL);

3) I also use these lines also to resolve as some one suggested in some forums
ini_set(‘session.cookie_domain’, ‘https://xxx.com’);

session_set_cookie_params(ini_get(‘session.cookie_lifetime’), ini_get(‘session.cookie_path’), ‘https://xxx.com’);

4)In PHP.ini, follwing things under session is shown

session.auto_start Off Off

session.bug_compat_42 Off Off

session.bug_compat_warn Off Off

session.cache_expire 180 180

session.cache_limiter nocache nocache

session.cookie_domain no value no value

session.cookie_httponly Off Off

session.cookie_lifetime 0 0

session.cookie_path / /

session.cookie_secure Off Off

session.entropy_file no value no value

session.entropy_length 0 0

session.gc_divisor 1000 1000

session.gc_maxlifetime 1440 1440

session.gc_probability 1 1

session.hash_bits_per_character 5 5

session.hash_function 0 0

session.name PHPSESSID PHPSESSID

session.referer_check no value no value

session.save_handler files files

session.save_path /var/lib/php/session /var/lib/php/session

session.serialize_handler php php

session.use_cookies On On

session.use_only_cookies Off Off

session.use_trans_sid 0 0

Following Error Message shown in server
Undefined index: userid in /var/www/vhosts/xxx.com/httpdocs/HomePage.php on line 9

Still I have same problem. Please suggest me to resolve this problem

Thanks in advance

  • 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-04T06:15:34+00:00Added an answer on June 4, 2026 at 6:15 am

    Here They give Vhost server. Vhost server doesn’s store sessions. So only only i face this problem.. I use oneway to resolve this problem. Pass session as POST variable and assign the session id in each page. Now it works..

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

Sidebar

Related Questions

I have developed a site in drupal 7 and forget its admin password. Now
I developed one database related application for iPhone device(SQlite database). Now i want to
I developed one swing application but each time you run application new window is
I developed one asp.net application then copy this application and put on another machine
I am working on one site developed in asp.net,javascript,jQuery and sql as back end.
I have developed a news website in a local language(utf-8) which server average 28k
I publish web site on windows server 2008 x64 with iis 7, I developed
I've been running and developed a classified site now for the last 8 months
I have uploaded one site developed with codeigniter. and after applying the .htaccess, it
I developed a website .The site works fine on Chrome 19.0.1084.46 m but on

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.