Sessions in database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Sessions in database

Post by Smackie »

I got sessions stored on via ie but i need to put them into database so they can transfer over to a secured pages and i was wondering how i can leave them on via ie and also set them in database so they can transfer? and also can someone help me set my creditcard page into my check out page i found a nice credit card script but not sure on how to really put it into my check out pages ill give you the links to each one to see what they look like

Checkout page 1
http://www.fraziers.webcom-online.org/cart/test1.html

checkout page 2
http://www.fraziers.webcom-online.org/cart/test2.html

credit page 1
http://www.fraziers.webcom-online.org/c ... cpage.html

credit page 2
http://www.fraziers.webcom-online.org/c ... part1.html


Thank you
Smackie
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I have no idea what you are asking.. when you mean transfer to a secure page you mean SSL secured page? From your links you've shown you've not showed any SSL links so I'm confused.

google something like "lost shopping cart session", as this is a common problem for developers.. this is assuming I understood your problem.
and i was wondering how i can leave them on via ie and also set them in database so they can transfer?
You lost me completely from this point on..

Could you please explain in much more detail exactly what you are asking
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

reason why i dont have ssl is because im not sure on how to insert the creditcard script into my checkout page and yes im talking about SSL..
User avatar
jwalsh
Forum Contributor
Posts: 202
Joined: Sat Jan 03, 2004 4:55 pm
Location: Cleveland, OH

Post by jwalsh »

http://www.yoursite.com and https://www.yoursite.com are entirely different domains. Thus when you access from https you cannot see the sessions stored on the former domain.

Is that what you are asking?
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

no thats not what im asking im asking how do i take the session id from the page and put it into database and echo it back out onto the secured pages so the costumer wont lose there session going to the secured place.... and the 4 pages i showed i wanted to know how do i combind them together so they both work together in 2 pages?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

session_set_save_handler();

Write your own method of storing in the DB. See examples on that page ;)

Then you just need to assign sessions to userids.... providing the session hasn't been cleaned out you should be able to pull it back from the database for that user. Not sure it will work across HTTP and SSL though.

No idea what you mean by "via ie", that's just the browser... the sessions are stored on the server ;)
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

thats what i mean by via ie (the server) couldnt really think earlier because its been buggin me for a while :-\
Post Reply