Jump to content

Has anyone experienced using sessions on readyhosting?


luxe

Recommended Posts

Ok guys....Im trying to upload a login onto my client's webhost readyhosting...and they require the following session config:

 

session_save_path("your home directory path"/cgi-bin/tmp);

session_start();

 

Log into the PHP Scripting page for actual path to your home directory. Replace "your home directory path" with the path shown.

Set session_save_path to a directory within your cgi-bin: either /cgi-bin/tmp as in the example above or another directory as long as the absolute path is correct.  I do have the home directory path as well.

 

I currently have this as code

<?php

 

if (!isset($_SESSION)) {

  session_start();

}

 

$loginFormAction = $_SERVER['PHP_SELF'];

if (isset($_GET['accesscheck'])) {

  $_SESSION['PrevUrl'] = $_GET['accesscheck'];

}

 

if (isset($_POST['username'])) {

  $loginUsername=$_POST['username'];

  $password=$_POST['pwd'];

  $MM_fldUserAuthorization = "";

  $MM_redirectLoginSuccess = "index2.php";

  $MM_redirectLoginFailed = "index.php";

  $MM_redirecttoReferrer = false;

  mysql_select_db($database_arborConn, $arborConn);

 

  $LoginRS__query=sprintf("SELECT user_name, user_pass FROM users WHERE user_name=%s AND user_pass=%s",

    GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));

 

  $LoginRS = mysql_query($LoginRS__query, $arborConn) or die(mysql_error());

  $loginFoundUser = mysql_num_rows($LoginRS);

  if ($loginFoundUser) {

    $loginStrGroup = "";

   

 

When I do edit it according to the instructions, I get a syntax error.  I can't simply change the php.ini file because they dont permit it, I've even tried htaccess to no avail.  I got this working on another server... http://dconstruct.net/test.php  the session_save_path is set to "no value" vs. "c:\php5\sessiondata" of the server that it isn't working on.

 

Please...help....so tired...

Link to comment
Share on other sites

i only know its a syntax error because I get a blank page, I dont think I can turn on error checking because I have no access to the php.ini file.

 

I think that's why they want me to re-route the save_session_path in the first place.

 

 

Link to comment
Share on other sites

hmm you could do a work around using a secondary server, but odds are that won't get you very far, talk to the host if its erroring on a request made by them it shoul be fixed, otherwise turn up error reporting and try and get the error the only logical thing i can see is the folder you are attempting to write sessions to is not a writable folder

Link to comment
Share on other sites

Post the syntax error.

 

Ok guys....Im trying to upload a login onto my client's webhost readyhosting...and they require the following session config:

 

session_save_path("your home directory path"/cgi-bin/tmp);

session_start();

 

Log into the PHP Scripting page for actual path to your home directory. Replace "your home directory path" with the path shown.

Set session_save_path to a directory within your cgi-bin: either /cgi-bin/tmp as in the example above or another directory as long as the absolute path is correct.  I do have the home directory path as well.

 

When I do edit it according to the instructions, I get a syntax error.   I can't simply change the php.ini file because they dont permit it, I've even tried htaccess to no avail.  I got this working on another server... http://dconstruct.net/test.php  the session_save_path is set to "no value" vs. "c:\php5\sessiondata" of the server that it isn't working on.

 

Please...help....so tired...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.