Duke 1 Posted May 28, 2015 Report 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 Quote Link to post Share on other sites
Larry 433 Posted May 29, 2015 Report 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. Quote Link to post Share on other sites
Duke 1 Posted June 1, 2015 Author Report 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 Quote Link to post Share on other sites
Larry 433 Posted June 2, 2015 Report Share Posted June 2, 2015 Cool, cool! Thanks for letting us know! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.