Jump to content
Larry Ullman's Book Forums

Recommended Posts

Is there a way to use $_SESSIONS in a rss feed? When I add $_SESSION,  the feedvalidator.com says the script is not a valid feed..Should I ignore this and jut use it with the $_SESSION?

 

Thx

Link to comment
Share on other sites

I've never heard of sessions being used with RSS feeds, but that doesn't mean it's not possible. Just that I don't know! My inclination is that you shouldn't use sessions with RSS feeds, however, as you wouldn't have a login system. If authentication is required, that could be indicated via a header value as part of the RSS request. 

Link to comment
Share on other sites

Here is what I did...

 

I added a value into the url link to the rss feed script.  (rss.php?x=somevalue). 

The rss.php script checks the value in the url using if(isset($_GET['x'])) against a value in the database. (Learned this in a book by Larry Ullman).  

 

Also checks out as valid rss when submitted to feedvaliator.com.

 

Do not need it to be super secure.

 

Thank you

David

Link to comment
Share on other sites

 Share

×
×
  • Create New...