Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

session handling

Posted on 2006-10-21
6
Medium Priority
?
212 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 800 total points
ID: 17780774
Because that way the sessions will still work, even if users have cookies disabled in their browser...
0
 

Author Comment

by:tamirvs
ID: 17780821
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
ID: 17781465
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:tamirvs
ID: 17782974
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
ID: 17783036
What language are you using?
0
 

Author Comment

by:tamirvs
ID: 17784115
php
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

886 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