Koozali.org: home of the SME Server

How to use $_SESSION in SME 7.3???

Offline alm7100

  • *
  • 8
  • +0/-0
How to use $_SESSION in SME 7.3???
« on: April 27, 2008, 10:22:21 AM »
Its seems that my SME 7.3 cant understand the use of session variabel $_SESSION, please tell me what i am doing wrong??

Yours
Allan

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: How to use $_SESSION in SME 7.3???
« Reply #1 on: April 27, 2008, 03:48:07 PM »
Its seems that my SME 7.3 cant understand the use of session variabel $_SESSION, please tell me what i am doing wrong??

Yours
Allan

You probably need to elaborate on what you are trying to do before you can expect any sensible answers to your question.

Marco
Adelaide - Australia

Offline alm7100

  • *
  • 8
  • +0/-0
Re: How to use $_SESSION in SME 7.3???
« Reply #2 on: April 27, 2008, 04:55:56 PM »
Whill try but sorry for my english

I am trying to uses sessions like this

session_start();
$_SESSION['grafdata'] = $ar_data;

and in a other file i am trying to read it this way

$grafdate = $_SESSION['grafdata'];

this dosent work on whit the php that is install on SME but works on my wamp server install on my windows xp computer.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to use $_SESSION in SME 7.3???
« Reply #3 on: April 27, 2008, 05:26:42 PM »
Whill try but sorry for my english

I am trying to uses sessions like this

session_start();
$_SESSION['grafdata'] = $ar_data;

and in a other file i am trying to read it this way

$grafdate = $_SESSION['grafdata'];

this dosent work on whit the php that is install on SME but works on my wamp server install on my windows xp computer.
I think this has to do with the register_globals being set to off by default on SME Server, it is a security measure. For more information in register_gloabls: http://www.php.net/register_globals
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: How to use $_SESSION in SME 7.3???
« Reply #4 on: April 27, 2008, 05:31:08 PM »
You can quickly check what the PHP environment on SME looks like by
create a file php_info.php in your Primary html directory with:

Code: [Select]
<?php
phpinfo
();
?>


and run that through your browser. Compare that to the results on your wamp and look for the differences.
Adelaide - Australia

Offline byte

  • *
  • 2,183
  • +2/-0
Re: How to use $_SESSION in SME 7.3???
« Reply #5 on: April 27, 2008, 05:37:15 PM »
Moving this topic to the General Discussion forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to use $_SESSION in SME 7.3???
« Reply #6 on: April 28, 2008, 03:47:15 PM »
Moving this topic to the General Discussion forum, it is more appropriate there.

I think a PHP programming forum would be more appropriate. This really has very little to do with SME 7.3.