Solved

session handling

Posted on 2006-10-21
6
151 Views
Last Modified: 2010-04-06
hi,
i want to use sessions in my web, so i understand there r 2 ways to handle their id: cookies and url.
as far as i know the cookies way is safer, so why in forums i see that they use the url to get the session id?
0
Comment
Question by:tamirvs
  • 3
  • 3
6 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 200 total points
Comment Utility
Because that way the sessions will still work, even if users have cookies disabled in their browser...
0
 

Author Comment

by:tamirvs
Comment Utility
is there a way to change the method to url after i check if the user have cookies disabled?
0
 
LVL 29

Expert Comment

by:TeRReF
Comment Utility
Well, you can 'manually' add the session id to the URL via GET and use it to continue the session in the next page.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:tamirvs
Comment Utility
umm i ment is it possible to do a check whether the user has cookies enabled\disabled and to use the appropriate method according to it?
0
 
LVL 29

Expert Comment

by:TeRReF
Comment Utility
What language are you using?
0
 

Author Comment

by:tamirvs
Comment Utility
php
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now