Title: comments.php login problem in Firefox
Last modified: August 18, 2016

---

# comments.php login problem in Firefox

 *  [kri](https://wordpress.org/support/users/kri/)
 * (@kri)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/commentsphp-login-problem-in-firefox/)
 * _<?php if ( $user\_ID ) : ?>_
 * 
 * <?php else : ?>
 * <input type=”text” name=”author” id=”author” value=”<?php echo $comment_author;?
   >” size=”22″ tabindex=”1″ />
    <label for=”author”><small>Name <?php if ($req)
   _e(‘(required)’); ?></small></label>
 * <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email;?
   >” size=”22″ tabindex=”2″ />
    <label for=”email”><small>Mail (will not be published)
   <?php if ($req) _e(‘(required)’); ?></small></label>
 * <input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url;?
   >” size=”22″ tabindex=”3″ />
    <label for=”url”><small>Website</small></label>
 * _<?php endif; ?>_
 * I want to use this functionality so that people commenting on my site have the
   option of registering to my blog so that they don’t have to type their information
   every time. Mainly, I want to use it so that I don’t have to type my information
   every time when I respond to comments.
 * Firefox creates problems with the if ($user_id) stuff. Basically it will permanently
   give you either a logged in comment page, or not depending on what you first 
   had.
 * For example, whenever I view my comments pages it never shows me logged in, even
   though I am. I can type a comment in the comments field, leave the author-url-
   email fields blank, and it will post the comment as if I’m logged in. The problem
   comes with the other example. I was in my fiance’s Firefox profile and had logged
   into WordPress as myself. Now whenever he goes to my comments page, it shows 
   him logged in as me no matter what. I tried logging out of wordpress, but it 
   still shows him logged in as me.
 * I checked all of this in IE, and it works like it’s supposed to. One can log 
   in and out with no problems. I’ve taken out the offending code for now, but I
   would really like to use this functionality. I even tried deleting cookies for
   my domain, but that didn’t fix the problem. I tried clearing my cache so it would
   load fresh pages, and that didn’t work.
 * I must note that the above code is how the comments.php page comes in the default
   WordPress theme.

The topic ‘comments.php login problem in Firefox’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kri](https://wordpress.org/support/users/kri/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/commentsphp-login-problem-in-firefox/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
