Zen Cart Logo
Forums / General Questions / SERIOSLY F****D OFF!!! .. please someone help !

SERIOSLY F****D OFF!!! .. please someone help !

Locked

Views: 830

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
5 Oct 2008, 12:16 PM
#1
accurax avatar

accurax

New Zenner

Join Date:
Mar 2008
Posts:
67
Plugin Contributions:
0

SERIOSLY F****D OFF!!! .. please someone help !

PLease help... anyone... im getting really stressed and about to loose my will to live !

What im trying to do is pretty simple in concept.

I have an ezpage which i have created from scratch, and im using it to gather some extra info about the customer.

But ... i need to check if they are logged in.

Does anyone know what the name of the session thats created when you log in is called?

|Has anyone else done anything like this?

Please i need help on this !!!

Thanks guys... really appreciate your time ! :) :cry:

5 Oct 2008, 1:10 PM
#3
accurax avatar

accurax

New Zenner

Join Date:
Mar 2008
Posts:
67
Plugin Contributions:
0

Re: SERIOSLY F****D OFF!!! .. please someone help !

Thast the variable i thought i should be using and have since confirmed.... problem is... it doesnt seem to be passed to my EZ page :( ..... does anyone know whay this session is not being passed:

heres my ezpage as stands :

<?php
session_start();
echo "Your id is : ";
echo $_SESSION['customer_id'];
?>

please i really need help with this !! :)

5 Oct 2008, 1:30 PM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: SERIOSLY F****D OFF!!! .. please someone help !

to the best of my knowledge
php dosnt work from within ezpages out of the box,

I seem to remember an add on that will allow this,

however you could put your code into the page2.php file and then call it into ezpages internally

5 Oct 2008, 1:34 PM
#7
accurax avatar

accurax

New Zenner

Join Date:
Mar 2008
Posts:
67
Plugin Contributions:
0

Re: SERIOSLY F****D OFF!!! .. please someone help !

php works fine.... the problem is passing the $_SESSION['customer_id'] variable.... it just seems to dissapear when you click on the ezpage link.

I have kind of gotten round it by hard coding a link and passing the is via $_GET[''] ... but this isnt the best way, and im going to have to re-authenticate the user to make sure its not a faker ... ideally id like to get that session passing correctly.

Any idea's guys?

5 Oct 2008, 6:07 PM
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: SERIOSLY F****D OFF!!! .. please someone help !

Do not start session again

remove "session_startCOLOR=#007700;"[/COLOR]