Duke Posted May 28, 2015 Share Posted May 28, 2015 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 More sharing options...
Larry Posted May 29, 2015 Share Posted May 29, 2015 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 More sharing options...
Duke Posted June 1, 2015 Author Share Posted June 1, 2015 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 More sharing options...
Larry Posted June 2, 2015 Share Posted June 2, 2015 Cool, cool! Thanks for letting us know! Link to comment Share on other sites More sharing options...
Recommended Posts