1
andy1234
Handling sessions in xoops
  • 2007/1/24 8:32

  • andy1234

  • Just popping in

  • Posts: 7

  • Since: 2007/1/4 9


Hi guys,

I cannot figure out how to handle my own custom sessions in my custom blocks.

Here is the situation:

1) I start session and assign a few variables, ex

S_SESSION['test']= 'mystring';
?>

2) Next, I want to get this session value from the custom block, i.e. including

echo S_SESSION['test'];
?>

However, it does not work and the XOOPS include files are preventing from showing thos sesion values. At the same time I can get it easily from the outside file (not the XOOPS shell)

Please, help, very urgent!!

Thanks

A

2
chippyash
Re: Handling sessions in xoops
  • 2007/1/25 16:41

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Not sure you need

session_start();

because that will presumably reset the session.

The session ASFAIK is available as soon as you connect to the XOOPS site

simply assign and retrieve e.g.

script 1
$_SESSION['myvar'] = somevalue;

script 2
$myvar = $_SESSION['myvar'];

Works for me, but others may know better.

Login

Who's Online

386 user(s) are online (342 user(s) are browsing Support Forums)


Members: 0


Guests: 386


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits