Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 01:06:20 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155557 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Can't get sessions to work  (Read 720 times)
duffcase

Offline Offline

Posts: 5


« on: September 14, 2006, 09:40:50 AM »

Hi.

I'm trying to integrate another system into wb using code pages. However I can't get php sessions to work, a simple test as the one below fails. Any ideas on how I can get it to work, or what I'm missing?

page test1
Code:
session_start();
$_SESSION['test'] = "test";
<a href="test2.php">test2</a>

page test 2
Code:
session_start();
print $_SESSION['test'];
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: September 14, 2006, 10:11:33 AM »

don't try to integrate via codepages ... go for the wrapper. This way the other system can use it's own sessions.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

duffcase

Offline Offline

Posts: 5


« Reply #2 on: September 14, 2006, 10:42:52 AM »

Thanks for your reply. However, wrapper is not an option, the Iframe can't be controlled enough to fit the design of the page.

Is there any other way to get this working?
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #3 on: September 14, 2006, 10:54:03 AM »

you know, that additionally you can also edit the file view(.)php of the wrapper module. Maybe that way you can control it well enough.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

shadowness

Offline Offline

Posts: 18


« Reply #4 on: July 20, 2010, 10:28:34 PM »

Hello!

I've got the same problem, and I can't get it to work!

i'm including some .php pages (using code) into my website, and can't get the session to work.

If my login.php script (hosted on ../templates/templatedir/login.php) redirects to some http://server.com/page.php the session is kept, but redirecting to http://server.com/pages/viewprofile.php the session is lost!

Can't use the wrapper also because it doesn't load any css and god knows what :\

Please help me guys!

Thanks,
Artur

edit: also, the session is diferent that any other that might be in use by WB.
« Last Edit: July 20, 2010, 10:30:07 PM by shadowness » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!