ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
One weakness I have discovered about this is that it does record a session ID in the URL, which if someone were to copy and paste, it would allow them to access the site.
I'm not worried about it for my purposes, but there must be a more secure way!
I'm pretty sure there is a way to turn that off actually, because on the pages I've done with it the session ID doesn't show up. I'll look it up for ya tho.
You're welcome by the way. Have a good one. If you ever need anything else feel free to look me up.
**EDIT**
Seems like it only adds the session to the url if you have cookies disabled.
That's correct. At the same time you would encounter a similar problem with using sessions, since it tends to employe cookies as well. You don't directly "see" it, but most configurations do.
On the other hand, this won't be much of a problem for the type of application you are trying to develop. The idea is that a user logs and then his/hers info is carried between the pages he/she visits. If they leave the site and return later, with cookies, you could make it so the person's info is remembered. Or you can make it expire like with a session. If they delete their cookies, then it doesn't matter, since you'd just make them login again, just like what would need to happen with sessions.
right... for my current project what I have is sufficient...but I still would like to know what the best thing to do is for when I launch a site that needs to be totally secure!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.