Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » php sessions

#1 2006-03-29 23:30:39

manamex
New Member
Registered: 2005-05-30
Posts: 7

php sessions

Hello,
I would like to use php sessions on textpattern powered site. Does anyone have any experience with that?
What I need is unique session_id for every of my visitors visiting one of the pages for payment transaction…
Regards,
manamex

Offline

#2 2006-03-30 23:06:59

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: php sessions

I can’t see any reason why PHP sessions wouldn’t work, although I haven’t actually tried it. TXP uses output buffering, so you should be able to call session_start() anywhere without having to worry about whether the headers have already been sent. You could then call session_id() to get the assigned session ID.

-Kurt


kurt@kurtraschke.com

Offline

#3 2006-03-30 23:28:28

manamex
New Member
Registered: 2005-05-30
Posts: 7

Re: php sessions

Yes, I’ve tried it and session_start() it seams to work correctly. I only use session_id I do not register any session variables…

I wonder however if it is required to use session_destroy() or the session is ended automatically for me.
manamex

Offline

#4 2006-03-31 01:26:16

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: php sessions

Yes, you’ll still need to use session_destroy. :)

Offline

  1. Index
  2. » Archives
  3. » php sessions

Board footer

Powered by FluxBB