help - value avail. in normal page but not in SSL page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
steveforall
Forum Newbie
Posts: 1
Joined: Sat Mar 20, 2004 1:19 am

help - value avail. in normal page but not in SSL page

Post by steveforall »

I am new to php language and need a help.

I have a simple code as below called "sample1.php".

http://www.mydomain.com/sample1.php
=======================================
require_once('./include/h.inc.php');
$my_userid = $user->user_id;
$my_username = $user->username;
$my_email = $user->email;

PRINT "here at 1 : " . $my_userid . "<br>";
PRINT "here at 2 : " . $my_username . "<br>";
PRINT "here at 3 : " . $my_email . "<br>";
=================================
when called as above, all prints ok.

I have another php file called sample2.php which has the exact same code as above but called in secured mode.

I don't have my own SSL certificate but i am trying to just use my hosting company's server side certificate and process this in a secure mode (https). The way to call my sample2.php using my hosting company's server side certificate, i have to call it like this.

https://serverXX.myhostingcompany.com/~ ... ample2.php

When i run it like this, the value returns nothing.

Are the values supposed to be lost when called from server side SSL method?

Another alternative way that i am thinking but don't know how is :
Without using a FORM hidden value method of POSTing to another file (sample2.php) the value of $my_userid, $my_username, $my_email from sample1.php, is there anyway i can pass these 3 variable values to be available on my sample2.php which is called using my hosting company's server side secured page HTTPS method?

Any help is highly appreciated. Thank you.


Steve
Post Reply