Hi,
If we develop a site with SEO compatible, is it possible to use Session Variables? If not what is the alternative? Thanks many. Best regards.
Hi,
If we develop a site with SEO compatible, is it possible to use Session Variables? If not what is the alternative? Thanks many. Best regards.
No, you should refrain from doing that. It really depends on what you are planing to do. A little more information would be helpfull
A search engine indexes pages on your site based on their URLs. If your URLs are not dependent on the unique Session ID assigned to every request, then a spider should not have a problem indexing your site.
That said, the content of your pages also matters. If the page content relies heavily on Session variables (or Viewstate params), you might have a problem getting that page indexed. The best way is to have unique and static URLs for each section of your site.
You should use cookies, because they are machine dependent. Session identifiers in the URL are very unsave (session-stealing), because you loose your session if you send the url to somebody.
I agree with Cerebrus. Just make sure that
Session variables can be passed in a HTTP request as a cookie, a POST variable, or in the URL.
Search engines do not support cookies or POST variables, and it they try to avoid pages with session variables in the URL.
You can use cookie or POST based session tracking for your users, but be aware that requests from search engines will always appear as the start of a new session.