Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8614637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:10:02+00:00 2026-06-12T05:10:02+00:00

I am working on E-commerce Web Application, which is having users and permissions to

  • 0

I am working on E-commerce Web Application, which is having users and permissions to them.. So according to their permission,

For Ex: I am storing variable $chk = 'write' or $chk = 'read' on session and my condition is

if ($chk == 'write')
{
   // some function here to modify the page & its content
   // If true, then display SAVE button to save all changes made.
}

But, Sometimes my page cant access this variable, the value of $chk is unknown hence its not displaying SAVE button. But, it shows the button after refreshing the page or visiting sometime later. Can anyone help me to solve this.. Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:10:03+00:00Added an answer on June 12, 2026 at 5:10 am

    Session variables in PHP need to be stored in the $_SESSION magic variable to persist them across multiple pages. To ensure that a page has access to the session, you also need to call session_start() on each page.

    In this case, changing $chk to $_SESSION['chk'] and adding session_start() at the top of each page will probably do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a database design for an e-commerce web application. For this question
I'm working on an e-commerce type web application and need to somehow handle calculation
I am working on a sql server 2008 DB and asp.net mvc web E-commerce
I've started working on some enhancements to an ASP.NET web forms e-commerce project, one
I am working an e-commerce site which will allow pdfs to be downloaded once
I'm working on Payment Gateway for large e-Commerce site which is based on ASP.NET
I have been working on asp.net mvc3 e-commerce application based on NopCommerce. Recently we
I'm working on a commerce site on which orders are placed. To track that
Our application is working n NoP commerce and we are trying to integrate payment
I'm working on SolrNet 3.6 which is used in e-Commerce site based on ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.