SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unable to login to members area since moving webfiles to shared storage

    Our company has an internal website where members login to see hotel details. Since moving the webfiles from local server to a shared storage the members cannot login to the site, when attempting to login they get returned to the home page without any incorrect user details message which normally happens when incorrect details are entered. The user details are stored in a mysql database and are definitely being entered correctly.

    We have other websites that have also moved to shared storage that work fine but they do not have login sections


    Can anyone help?

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Look carefully at how the 2 servers differ in their configuration. (use phpinfo()).

    If you have a big difference in the modules loaded, or security settings such as whether GET, COOKIE and POST vars are handled as GLOBALS then you probably need to modernise your code.

  3. #3
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The php files are looking at the same php configuration as when they were located locally so I don't feel this is the issue. I believe the problem is to do with sessions but am unsure how to integrate sessions into my existing code

  4. #4
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Well create a couple of test scripts. One to set a session and one to read the session data with :

    PHP Code:
    <?php
    session_start
    ();
    var_dump($_SESSION);
    ?>
    .. and prove/disprove your theory.

  5. #5
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    4,998
    Mentioned
    100 Post(s)
    Tagged
    0 Thread(s)
    Are you storing sessions using the file system or in the database?
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  6. #6
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SpacePhoenix View Post
    Are you storing sessions using the file system or in the database?
    Trying to store them in a mysql db


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •