sessions

  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

hi, i recently read this article/tutorial on sessions: http://www.phpfreaks.com/tutorials/41/0.php

I must admit that i am amazed on how it improves from using the cookies. I was wondering if it would be possible to put the unique session id on the url bar, say for example the administration area? It would make it much more secure if there was such a thing.

Also, people talk about globals being bad etc, can someone please explain what the globals are and why they are bad?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

Yea, you can just put it in the links that they click on.
PHP Code: [ Select ]
echo "<a href=\"admin.php?sid=". sessions_id() ."\">Admin Area</a>";

That should be what you want.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

thanks man.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 114 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.