473,395 Members | 1,689 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.