Open s4ke opened 9 years ago
If you logout and then log back in, the session counter will be reinstated.
However, you are right that it displays nothing instead of "0".
I know that it should be reinstated, but on my test system it doesn't work. Feel free to try that on my blog site.
I should have clarified more. I just changed the message so it displays something meaningful for the moment.
The footer that shows how many posts a user has made is currently displaying the posts a user has made during this login. When you logout and login again, the counter is reset. Also the number of posts is not displayed if the user has 0 posts. I changed my footer to display this:
Welcome = $_SESSION['email']; ?>! You have made = $_SESSION['posts'] > 0 ? $_SESSION['posts'] : 0?> posts during this session. This is more appropriate than the current message imo. In action: http://aoc.getdrunkonmovies.com/