Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am working in a website where i want to add, delete, update my database in according to my admin panel with php code. What is the basic start of beginning for control my panel?
You have to add authorisation by login and password. After success your script should save in session information about correct login (like e.g logged = true). Then you must to check if users have token in session - if so then show them admin panel, if not then redirect on login page
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
Php Am building a e-commerce website so I want to create a temporary session for each and every user who visits my website and then store the information in database? (Note: without him creating an account)
You can use session_start function to create session in PHP, then you can store information about visitor, this is sample PHP code using session
<?php
session_start();
// set user name
$_SESSION['user_name] = $_POST['user_name']
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a Laravel web app where multiple users login but I need to prevent login if the user has already logged.
I know that Laravel has a method (logoutOtherDevices) to logout the user when a second user (same credentials) is login. But this method do not show any message when logout the user. I would like to inform the logged out user that another user has logged in.
How can I implement something like that?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm developing plugin for wordpress and i have already made settings page for admin in dashboard.
now i want to make some kind of button that is available on all pages but admin's pages like login page or 'wp-admin'.
what do you suggest?
Thanks.
You can use the is_admin() function in wordpress to determine whether the current request is directed to an admin page, so:
if(!is_admin()){
//YOUR PUBLIC(NON-ADMIN) ONLY CODE
}
WP codex on this function
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
After hours of trial and error, using WAMP i made a login system that mails me locally ( password recovery etc). I want to make pages that only the user has information tailored to the user, think of it as a profile page Facebook or Twitter, the news updates.
You can use sessions. In php you can type session_start(), then you can store some information about the user. So if the user don't have a session he can't access the page. Search about session_start(). You will find many examples about it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a Page with ID: 1620295414849355
I need to generate Page Access Token.
Need Page access token to post content on FB page from my website.
First you need to generate app token in the debug tool and then select your page from drop down present in the right side of access token.Then you will get the page access token in the same input box.