WordPress.org

Ready to get started?Download WordPress

Forums

Session Files in Word Press (5 posts)

  1. KathyJ
    Member
    Posted 6 years ago #

    My previous post on this subject seems to have disappeared. I have literally thousands of session files in my blog that are not closed and are clogging up my site with excess pages. Do I need to add coding or what do I do to have these session files close?

  2. iridiax
    Member
    Posted 6 years ago #

    Don't use ampersands in your php file names like projects&tips.php.

    Also, why are you using DTD HTML 4.0 Transitional with WordPress? The WordPress themes that I've seen use DTD XHTML 1.0 Transitional. I don't know if it's a problem or not, but it is unusual.

  3. iridiax
    Member
    Posted 6 years ago #

    I forgot to mention it, but you should also validate your pages:

    http://validator.w3.org/

  4. KathyJ
    Member
    Posted 6 years ago #

    Also, why are you using DTD HTML 4.0 Transitional with WordPress?

    I would assume that was part of the theme I am using. I don't know enough to know whether I should change that but would it make a difference to session files not closing?

    Why would I need to validate each page?

    Thanks for responding.

  5. iridiax
    Member
    Posted 6 years ago #

    Some themes use HTML 4.0 Transitional, but WordPress likes to add code for XHTML in posts and pages, so I was wondering if this could be an issue in general. This would most likely not affect your session files problem, so I wouldn't worry about it. The use of an ampersand in php files will cause major problems and may be the culprit in the sessions problem.

    Validating your code means checking it for errors in coding. Errors can cause all sorts of problems with web pages, although some errors like missing alt attributes are not a real problem. Your page has some easily fixable errors.

    http://codex.wordpress.org/Validating_a_Website

Topic Closed

This topic has been closed to new replies.

About this Topic