|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
I was wondering that how the vBulletin' Forum Developers can do these things such as hiding or showing the SessionId in the address bar on the browser. It would be terrific if I know how to do it
Please help me if anyone know the methods to do this. Thanks. |
|
#2
|
|||
|
|||
|
I dunno how vBull does it,...but I know IBF stores that setting in a cookie,.... and if you notice there is always a
Code:
page.php?s=& basically the code is saying,.. PHP Code:
Whether you choose to see the session id or not,..keep in mind that the session is still there ![]() get the idea?
__________________
-- Jason Last edited by Taelo : March 10th, 2003 at 01:40 PM. |
|
#3
|
|||
|
|||
|
Thank you very much. Taelo! But how am I gonna to set it up? Do you have any ideas?
|
|
#4
|
|||
|
|||
|
well you can store the value in the database, or you can set a client side cookie. If you set a cookie,...just retrieve the value from the cookie, and possibly load it into a session var.
PHP Code:
Now,...in your href's....simply echo out $_SESSION['s']; PHP Code:
make sense? |
|
#5
|
|||
|
|||
|
Wow! I love it. Thanks Taelo. I will try it later but I have to take a look at my code in order where I should start it. I will let you know something going to turnout. Greatly appreciative.
Regards, |
|
#6
|
|||
|
|||
|
I think IBF forums use "hide_sess" as the session var,....so if you wanted to,...you could use your forums to control the switching on and off of the showing of the session,....ad just use 2 or 3 lines of code to do some checking on that cookie
![]() |
|
#7
|
|||
|
|||
|
To make the session_id() visible in the address bar you set php to force appending of the session_id() to the url as so ->
PHP Code:
The above will not use client cookies to track session_id()'s and will auto append the session_id() to your links. PHP Code:
The above will attempt to use client cookies to track the session, if a cookie was set succesfully, it will not append the session_id() to the links and thus will hide the sesseion_id() from the url get string, if it was not succesfull in setting a cookie, it will track it through links by auto appending the session_id()...
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#8
|
|||
|
|||
|
or you could do that
![]() |
|
#9
|
|||
|
|||
|
How about I just want the SessionId to be hidden all the time. How can I set up the cookie? Please help me!
Thanks, |
|
#10
|
|||
|
|||
|
Please!
Please some body help me! I am trying but still being stuck...
|
|
#11
|
|||
|
|||
|
Quote:
You can't unless you create a custom session handler. Short and simple - sessions will not work unless the sess id is in a cookie on the clients machine, or attached to the url's or in hidden fields for post on your site. So, if a user comes to your site with cookies disabled - either YOU HAVE TO APPEND the session id to the links or the sessions WILL NOT WORK. In theory, a custom session handler can help on this - but in actuality, it will not work as not everyone that comes to your site will keep the same ip address for the duration of the time they are on your site (AOL Users) - so you have no way of keeping track of these users either... |
|
#12
|
|||
|
|||
|
u can use a simple frame
![]() |
|
#13
|
|||
|
|||
|
Quote:
This won't work. Reason being is if I start tab browsing through a site built like that with no passing of a session_id() in the link - it will be lost on every single page that I load. Same with popping or right clicking on a link and opening in new window - breaks the session_id(). There is absolutely (through PHP) NO way of doing this... ![]() EDIT:: Let me rephrase the above - there is absolutely (through PHP) NO way of doing this and creating a fully functional web site... ![]() |
|
#14
|
|||
|
|||
|
Thanks for all of yours responds, espcially to JPENN. Now I realize many things from your post. So the only way that I can have a perfect code is creating a custom session. Unfortunately, every books that I bought they never taught me how to create a custom session. If you have any books or tutorials reference which specific to this issue please let me know. Greatly appreciative.
Regards, |
|
#15
|
||||
|
||||
|
there is a tutorial here on Custome Sessions. it's can be found here Developing Custom PHP Sessions
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#16
|
|||
|
|||
|
You are absolutely right. It never worked while I was inside the members area and clicked on popup window link, then I went back to the main window I logged me out.
Quote:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How to hide SessionId in address bar? |
| Thread Tools | Search this Thread |