Jump to content

Session variables: page locations


limeboxmedia

Recommended Posts

I am creating a very basic CMS for a site I am working on. One thing I am doing is creating a MySQL system to hold the content and the sub-menus per page (for example, the "About Us" page includes different links about us... Or the Contact page gives people a contacts form or a list of staff (2 different links).

 

I know in prominent CMS programs they have the ugly $_REQUEST variables in the url (?id=1234&cat=5435&header=087&etc=7654)...

 

Is there a better solution to clean that up? I'd like to add session variables to check to see what page someone is on, but I know that's not really SEOed...

 

I also know php frameworks exist out there (like CakePHP) that allow pretty urls (http://www.mysite.com/contact/email) ... Is there any easy to do that just using PHP? Meaning is there a way to mimic the pretty url thing without going to a framework program?

 

Then finally, in the long run, are the framework programs a superior use of the language or from your experience, is using plain php/mysql a satisfactory alternative (I have been training in PHP but haven't yet had time to learn CakePHP).

 

Thank you in advance for your responses,

 

TJ

Link to comment
Share on other sites

Cake only works as pretty if you have mod-rewrite and yes you can do mod-rewrite too. Also if you store the info in $_SESSION then yes it will be SEO friendly, because search engines hate get data. But with Sessions everything is stored on the server and only a cookie is passed back and forth to maintain state. Plus if you are using a cms, most likely it is already maintaining sessions for you, so you can define your own session variables with in this program as long as you do not conflict with any of their session variables.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.