473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Use of #fragment with SID

I just added session support to a web site and the URL's that contain a
#fragment no longer function. Is there a delimiter that I can add following
the #fragment that will tell the browser that the SID information is not
part of the #fragment? Thanks in advance.

Stuart Baker
Jul 17 '05 #1
4 1797
I just added session support to a web site and the URL's that contain a
#fragment no longer function. Is there a delimiter that I can add following
the #fragment that will tell the browser that the SID information is not
part of the #fragment? Thanks in advance.

Let me add an example to make this eaiser to understand:

Test.html#Fragment
Works correctly - positions the page as expected

Test.html#Fragment&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page

Test.html#Fragment?&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page

Any suggestion are welcome.

Stuart Baker
Jul 17 '05 #2
On Sun, 08 Aug 2004 21:25:59 -0700, Stuart Baker wrote:
I just added session support to a web site and the URL's that contain a
#fragment no longer function. Is there a delimiter that I can add following
the #fragment that will tell the browser that the SID information is not
part of the #fragment? Thanks in advance.

Let me add an example to make this eaiser to understand:

Test.html#Fragment
Works correctly - positions the page as expected

Test.html#Fragment&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page

Test.html#Fragment?&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page

Any suggestion are welcome.

Stuart Baker

test.html?PHPSESSID=abc123#fragment
Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #3
Hi Stuart,

just try to put that "#"-Anchor at the End of the URL.. Instead of
"Test.html#Fragment&PHPSESSID=0253b9c41" use -->
"Test.html?PHPSESSID=0253b9c41#Fragment".

The background: The SID is parsed by PHP an is a GET-var sent to the
webserver... The #-anchor is only for the browser and is not submitted
to the webserver, so the browser needs to know that, so it has to
stand at the end of the URL...

Regards,
Michael Whittaker.

"Stuart Baker" <sb*****@NcOoSxP.AnMet> wrote in message news:<t1DRc.37651$sh.15347@fed1read06>...
I just added session support to a web site and the URL's that contain a
#fragment no longer function. Is there a delimiter that I can add following
the #fragment that will tell the browser that the SID information is not
part of the #fragment? Thanks in advance.

Let me add an example to make this eaiser to understand:

Test.html#Fragment
Works correctly - positions the page as expected

Test.html#Fragment&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page

Test.html#Fragment?&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page

Any suggestion are welcome.

Stuart Baker

Jul 17 '05 #4
Stuart Baker wrote:
I just added session support to a web site and the URL's that contain a
#fragment no longer function. Is there a delimiter that I can add following
the #fragment that will tell the browser that the SID information is not
part of the #fragment? Thanks in advance.

Let me add an example to make this eaiser to understand:

Test.html#Fragment
Works correctly - positions the page as expected

Test.html#Fragment&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page
Test.html#Fragment&PHPSESSID=0253b9c41....
isn't valid

Test.html?PHPSESSID=0253b9c41....#Fragment
is
Test.html#Fragment?&PHPSESSID=0253b9c41....
Does not work - Goes to the top of the page


Again, isn't valid.

The fragment part of URIs are considered client side, therfore it should
always e the very *last* part of the URI since the browser is the one
that does the parsing on it.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philippe Poulard | last post by:
hi, i have the following fragment : ****** <?xml version="1.0"> Begin <elem/> End ******
2
by: Rick Strahl [MVP] | last post by:
Hi all, I need a reality check <g>... I have the following XML fragment: <event sitename="West Wind Demo Link"> <url>http://rasnotebook/wconnect/testpage.wwd?Test2</url> <time>11/17/2003...
2
by: Yuriy | last post by:
Hi, any ideas how to read XML fragment from TextReader? XmlTextReader constructor accepts only Stream or string as source Do I miss something? thanks Yuriy
1
by: Wallace | last post by:
Hi all, I have a problem on validating a xml fragment using a single namespace schema which spread across multiple schema files using include in the master schema file. No matter how I change...
3
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we...
3
by: Gustaf | last post by:
I'm trying to grasp this little passage from the XBRL spec: "The xlink:href attribute MUST be a URI. The URI MUST point to an XML document or to one or more XML fragments within an XML document....
2
by: Shimon Sim | last post by:
Hi I keep getting error : WriteStartDocument cannot be called on writers created with ConformanceLevel.Fragment. The code that I have is very simple. SimpleClass c = new SimpleClass();
2
by: =?Utf-8?B?Q29lbg==?= | last post by:
Hi, can anyone tell me 1) what is a easy way to build a xml fragment into a string. I don't what the fragment to be written to file, just in a string will be fine. I can build the xml fragment...
2
by: scottbvfx | last post by:
Hi, I'm trying to launch a web browser along with an html file with a fragment identifier in its path. I'm using the webbrowser module for this. ie....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.