This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have a user form where users can register on it. but the username and password passed through the session he should not enter it manually. when the user completes the registration, it will login and redirect him to his profile. (this part is completed)
If the user is already registered wants to access again, the system should pass the credentials from the session and login then redirect him directly to his profile. I have used the below code in the PHP snippet plugin and insert it on the profile page, but it redirects without login. what is wrong?
briefly ( we want an already registered user to login when he accesses his profile page and the username and password coming from the session)
<?php
/**
* New custom code snippet (replace this with snippet description).
*/
session_start();
toolset_snippet_security_check() or die( 'Direct access is not allowed' );
// Put the code of your snippet below this comment.
For clarity can you explain in a bit more detail the comment below.
If the user is already registered wants to access again, the system should pass the credentials from the session and login then redirect him directly to his profile. I have used the below code in the PHP snippet plugin and insert it on the profile page, but it redirects without login. what is wrong?
Is it that when the user logs in you want them to get redirected to their profile page? Is the profile page set to display the login form if the user isn't logged in ?
Finally what is the code that you are using for the login form.