Zhimeng plus/diy. php-php Tutorial

Source: Internet
Author: User
Zhimeng plusdiy. php: I want to add the administrator logon permission to this page. only after the administrator logs on can the plus/diy. php page be displayed.

I have successfully logged on to the dede/login page.
If ($ res = 1) {$ _ SESSION ["dengluguo"] = 4; $ cuserLogin-> keepUser (); if (! Empty ($ gotopage) {ShowMsg ('successfully logged on, is switching to the management homepage! ', $ Gotopage); exit ();} else {ShowMsg (' successfully logged on, switching to the management homepage! ', "Index. php"); exit ();}}


$ _ SESSION ["dengluguo"] = 4 is assigned for logon. Why can't I find it on the diy. php page?

Echo $ _ SESSION ["dengluguo"]; no

$ _ SESSION is released only when the browser exits ..


Reply to discussion (solution)

Check whether $ _ COOKIE exists.

Check whether $ _ COOKIE exists.

Is this related to $ _ COOKIE?

The default session of Zhimeng seems to have nothing to write to the cookie.

The default session of Zhimeng seems to have nothing to write to the cookie.

$ _ SESSION ["dengluguo"] = 4; is it useless if I have assigned a value?

Hello, I have something to ask you. can you contact xiamama? My 18664821547

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.