Title: Trigger Login Loop
Last modified: September 3, 2017

---

# Trigger Login Loop

 *  Resolved [bonesteelkat](https://wordpress.org/support/users/bonesteelkat/)
 * (@bonesteelkat)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/login-loop-13/)
 * Hello,
 * So I’m still having the security check issue but I realized it has something 
   to do with a trigger that I added because I re-added the plugin and tried it 
   by itself and worked fine, but I’m not sure what to do about this. So I added
   this trigger onto the database so that another table called “home_info” would
   update when a seplog_user was inserted (seplog_users_user_id is the foreign key):
 * `CREATE DEFINER=`root`@`%`TRIGGER`mydb`.`seplog_users_AFTER_INSERT`AFTER INSERT
   ON`seplog_users` FOR EACH ROW
    BEGIN INSERT INTO home_info (seplog_users_user_id)
   VALUES ((SELECT new.user_id from seplog_users where id = new.id)); END`
 * But after I added the trigger I got that security check issue. So I removed the
   trigger to try and get rid of the issue but all that happened was if I was not
   logged into my wordpress account and I tried the seplog login, it would loop 
   the login so that if I tried to go to account, it would say I wasn’t logged in,
   but when I went to login, it would say that I was already logged in and continue
   this cycle on whatever I tried. When I am logged in to wordpress again there 
   are no issues for whatever reason.
 * After adding the trigger again I don’t get the loop but I do get the security
   check error. I tried reverting the database back to an old version that never
   had the trigger in the first place but I still had this issue. I’m very confused.
   Did I miss everything up??
    -  This topic was modified 8 years, 9 months ago by [bonesteelkat](https://wordpress.org/support/users/bonesteelkat/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Christian Gatti](https://wordpress.org/support/users/christian-gatti/)
 * (@christian-gatti)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/login-loop-13/#post-9466980)
 * Hello again,
    since your problem is not related to my plugin, this is not the
   right place to discuss it. Moreover, since you’re referring to a generical procedure(
   triggering), I guess you can find a pletora of people willing and able to help
   you on Stackoverflow or places like that.
 * Thank you,
    Christian
    -  This reply was modified 8 years, 9 months ago by [Christian Gatti](https://wordpress.org/support/users/christian-gatti/).
 *  Thread Starter [bonesteelkat](https://wordpress.org/support/users/bonesteelkat/)
 * (@bonesteelkat)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/login-loop-13/#post-9467039)
 * All right, I understand. Thank you for the help anyway!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Trigger Login Loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/separate-login_9c9898.svg)
 * [Separate Login](https://wordpress.org/plugins/separate-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/separate-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/separate-login/)
 * [Active Topics](https://wordpress.org/support/plugin/separate-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/separate-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/separate-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bonesteelkat](https://wordpress.org/support/users/bonesteelkat/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/login-loop-13/#post-9467039)
 * Status: resolved