Solved

session handling

Posted on 2006-10-21
6
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 200 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
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 

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

Industry Leaders: 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!

Question has a verified solution.

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

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

617 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