Forum Moderators: coopster

Message Too Old, No Replies

Alternitives to cookie and URL sessions

         

smithaa02

8:51 pm on Apr 13, 2006 (gmt 0)

10+ Year Member



Are there alternitives to using cookie or URL sessions? Does PHP have any built-in mechanism to create IP based sessions on the server? I need to store user specific information but can't depend on cookies and changing all the URL to accommodate sessions would be too much trouble.

whoisgregg

9:23 pm on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Users behind proxies have changing IP addresses from one request to the next.

smithaa02

9:36 pm on Apr 13, 2006 (gmt 0)

10+ Year Member



Not many do that, right?

This doesn't have to be 100% accurate... Basically, special links are given to the sales staff, so when when a client uses that link to get to our website and then also fills out a special form on the website, the sales person gets credit. Some of the clients block cookies (which is the problem I have now), and I really can't add session id's to all URL's on the site, so I'm not sure really what to do...

Habtom

7:38 am on Apr 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



//and I really can't add session id's to all URL's on the site, so I'm not sure really what to do...

I would prefer adding sessions, and play around that to get better results. As for alternatives, I am not sure.

Habtom

dreamcatcher

12:41 pm on Apr 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why do you need to add the session id to the URLs?

You access the session id at any time using session_id().

dc

henry0

2:03 pm on Apr 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I will reverse your logic
1) let the client fill the form
2) this creates somes ID username or any other input to the DB
3) the script authenticates the user and deliver a link
or creates any doc or page and generates a link and again passes it to the client

The rep needs only to point the client to the form URL

smithaa02

2:10 pm on Apr 17, 2006 (gmt 0)

10+ Year Member



Why do you need to add the session id to the URLs?
You access the session id at any time using session_id().
But if cookies get blocked and there is no session information in the URL, how does php maintain sessions?