473,395 Members | 1,692 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,395 software developers and data experts.

HTML Validation Errors - Sessions

I am trying to validate my website coding using the W3.ORG markup
validator.

Although there are some problems I am able to solve -I am getting lots
of these messages:

"Line 39, column 35: cannot generate system identifier for general
entity "PHPSESSID"

<a
href="printerfriendly.php?pn=1&PHPSESSID=1fa03d252 f4998f205c34b67f45873ee">"

This is because PHP is inserting session variables using & rather than
&amp;. I have searched the net for a solution - and have identified one
or two that I can't seem to get to work.

Can someone suggest a definitive solution. I do not have full access to
the server (shared hosting).

Many thanks.

Jul 17 '05 #1
4 1761
*** St***********@gmail.com wrote/escribió (7 Jun 2005 02:30:01 -0700):
<a
href="printerfriendly.php?pn=1&PHPSESSID=1fa03d252 f4998f205c34b67f45873ee">"

This is because PHP is inserting session variables using & rather than
&amp;. I have searched the net for a solution - and have identified one
or two that I can't seem to get to work.
Edit arg_separator.output in php.ini:

arg_separator.output = "&amp;"

BTW, and it's merely a matter of opinion, I don't think it's a good idea to
send session ids in URLs. That way they end up in bookmarks, forwarded
address, etc.

Can someone suggest a definitive solution. I do not have full access to
the server (shared hosting).


Oops... :)
Then try ini_set(), maybe you're allowed to change it per-script.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #2
>>I am trying to validate my website coding using the W3.ORG markup
validator. I am getting lots of these messages:
"Line 39, column 35: cannot generate system identifier for general entity "PHPSESSID" Can someone suggest a definitive solution . I do not have full access to
the server (shared hosting).
Oops... :)
Then try ini_set(), maybe you're allowed to change it per-script.

I am using cookies for sessions. PHP is adding the PHPSESSID
automatically when it can't find a cookie. I would prefer it not to do
this.

I do not have access to the php.ini file. I have tried inserting:

ini_set('session.use_trans_sid', 0);

at the top of every page that using sessions before the
session_start(); command.

Jul 17 '05 #3
>do not have access to the php.ini file. I have tried inserting:

ini_set('session.use_trans_sid*', 0);
at the top of every page that using sessions before the
session_start(); command.

I have added

"php_value arg_separator.output &amp;"

to my .htaccess file which hasn't stopped the session variables being
added by has ensured they are added with &amp; not just &.

Jul 17 '05 #4
St***********@gmail.com wrote:
<snip>
I am using cookies for sessions. PHP is adding the PHPSESSID
automatically when it can't find a cookie. I would prefer it not to do
this.

I do not have access to the php.ini file. I have tried inserting:

ini_set('session.use_trans_sid', 0);

<snip>

<news:11**********************@l41g2000cwc.googleg roups.com> or
<http://groups-beta.google.com/group/comp.lang.php/browse_frm/thread/aca375b24bf4e50c/ce24f27f2b7ac610#ce24f27f2b7ac610>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

Jul 17 '05 #5

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

Similar topics

12
by: StardogChampion | last post by:
I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about. 1. Line 126, column 48: there is no attribute "COLOR" <td height="1" colspan="5"><hr size="1"...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
8
by: goldtech | last post by:
Newbie esp about html validation - seems like something to strive for. Yet many pages even "enterprise" corporate type pages do not validate, yet seem to display well on most browsers. Two...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
7
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form...
7
by: jimrich | last post by:
Hi, using firefox browser and have a FrontPage built site: www.irenezart.com. used W3C markup validation service which came up with lots of errors in my index page. then I changed the doctype...
4
by: GaryDean | last post by:
On one of our projects, using vs2005 professional, Visual Studio reformats the html in an aspx page so that it is virtually impossible to work with - although it still executes properly. For...
2
by: Bruno Schneider | last post by:
I've seen this page, that seems invalid to me. Doctype is incomplete and it does not have a <bodytag. However, W3C validator validates it as HTML 4.01 strict, even when I force the DOCTYPE. I think...
1
by: =?Utf-8?B?ZGlzY2lwbGluZTRldmVyNjY2?= | last post by:
Hi, the CMS out company wrote a few years ago, uses certain attrbutes not included in any HTML validation known. Is there a way to add these custom attributes to HTML validation within VS2005? I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.