Jump to content

session problem


project3

Recommended Posts

$number = $_SESSION['number'];

 

$result = mysql_query("SELET * FROM `table` WHERE `user_number`='$number' ") or die(mysql_error())

 

That would only work if one of the session value names was number. I know how to do the sql.

what i need is the number that all the session values is under. that number is stored on the server I believe. I know the cart gets that number and uses it so there has to be a way i can too.

Link to comment
https://forums.phpfreaks.com/topic/98750-session-problem/#findComment-505327
Share on other sites

php session names from from here:

 

<?php
session_start(session_name);

 

 

i think you would have to dig into your cart script to see where that ID is coming from - could be an encrypted session name or cookie? you could store any variable into a SQL database with MD5 encryption and it would look like that.

Link to comment
https://forums.phpfreaks.com/topic/98750-session-problem/#findComment-505339
Share on other sites

php session names from from here:

 

<?php
session_start(session_name);

 

 

i think you would have to dig into your cart script to see where that ID is coming from - could be an encrypted session name or cookie? you could store any variable into a SQL database with MD5 encryption and it would look like that.

 

yeah thats what i did. i just found where its setting that id in the db. and set a session for it and works good. thanks.

Link to comment
https://forums.phpfreaks.com/topic/98750-session-problem/#findComment-505341
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.