Codeigniter 3 flashdata bootstrap message not showing although data added to database

Making a simple codeigniter 3 web application
where i wanted to add category name to the database through a form but even after submit the set flashdata msg not showing on front end..although i can see data added to table in phpmyadmin

here is my code views list.php


<?php $this->load->view('admin/header'); ?>

    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">Categories</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Categories</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
 <!-- Main content -->
    <div class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-lg-12">
               <?php 
      if($this->session->flashdata('success') !=  ""){ ?>
         <div class='alert alert-success mb-3'><?php echo $this->session->flashdata('success');?></div>;
    <?php  }
       ?>
              
             <!--<div class="alert alert-success">success</div>-->
            <div class="card">
               <!--<div class="card-body d-flex justify-content-center align-items-center" style="height:450px;">
                <h3 class="">Welcome to Codeigniter Web Console</h5>
              </div>-->
              <div class="card-header">
                 <div class="card-title">
                     <form id="SearchFrm" name="searchFrm" action="" method="">
                          <div class="input-group mb-0">
                              <input type="text" value="" class="form-control" placeholder="Search" id="" name="q">
                              <div class="input-group-append">
                                <button class="input-group-text"><i class="fas fa-search"></i></button>
                              </div>
                         </div>
                     </form>
                    
                 </div><!--card-title-->
                 <div class="card-tools">
                     <a href="<?php echo base_url().'admin/category/create' ?>" class="btn btn-primary"><i class="fas fa-plus"></i> Create </a>
                 </div>
              </div><!--card-header-->
              
              <div class="card-body">
                  <table class="table table-striped">
                    <thead>
                      <tr>
                        <th width="50">#</th>
                        <th>Name</th>
                        <th width="100">Status</th>
                        <th width="160" class="text-center">Action</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>1</td>
                        <td>Fashion</td>
                        <td><span class="badge badge-success">Staus</span></td>
                        <td class="text-center"><a href="" class="btn btn-sm  btn-primary"><i class="fas fa-edit"></i> Edit</a><a href="" class="btn btn-sm btn-danger ml-1"><i class="fas fa-trash-alt"></i> Delete</a></td>
                      </tr>
                      <tr>
                        <td>1</td>
                        <td>Fashion</td>
                        <td><span class="badge badge-success">Staus</span></td>
                        <td class="text-center"><a href="" class="btn btn-sm  btn-primary"><i class="fas fa-edit"></i> Edit</a><a href="" class="btn btn-sm btn-danger ml-1"><i class="fas fa-trash-alt"></i> Delete</a></td>
                      </tr>
                      <tr>
                        <td>1</td>
                        <td>Fashion</td>
                        <td><span class="badge badge-success">Staus</span></td>
                        <td class="text-center"><a href="" class="btn btn-sm  btn-primary"><i class="fas fa-edit"></i> Edit</a><a href="" class="btn btn-sm btn-danger ml-1"><i class="fas fa-trash-alt"></i> Delete</a></td>
                      </tr>
                     
                    </tbody>
                 </table>
              </div><!--card-body-->
              
            </div>
          </div>
          <!-- /.col-md-6 -->
       
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

<?php $this->load->view('admin/footer'); ?>
 

 

i even tried this code

 <?php if($this->session->flashdata('success') != ""){ ?>
             <div class="alert alert-success"><?php echo $this->session->flashdata('success'); ?></div>
             <?php } ?>

but that didnt work too